summary refs log tree commit diff
path: root/src/test/run-pass/macro-3.rs
blob: 6148ab9697906a717b5e6f5407ca8a61d9134ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// xfail-pretty - token trees can't pretty print

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

    assert (trivial!() == 16);

    macro_rules! trivial_tt(
        () => {1*2*4*2*1}
    )
    assert(trivial_tt!() == 16);
}