PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/macro.rs

http://github.com/jruderman/rust
Rust | 8 lines | 5 code | 2 blank | 1 comment | 0 complexity | ca14db130a7704f9e735346c1cac90bc MD5 | raw file
1//error-pattern:no clauses match
2
3fn main() {
4    #macro[[#trivial[], 1 * 2 * 4 * 2 * 1]];
5
6    assert (trivial!{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} ==
7                16);
8}