about summary refs log tree commit diff
path: root/src/test/compile-fail/macro.rs
blob: 5943e575a48f287cad56b24bf635e2b1289f4f58 (plain)
1
2
3
4
5
6
7
8
//error-pattern:no clauses match

fn main() {
    #macro[[#trivial[], 1 * 2 * 4 * 2 * 1]];

    assert (#trivial[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] ==
                16);
}