aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro53.rs
blob: efa2d4ba9731b1d6a92f40737e5f2189cf969198 (plain)
1
2
3
4
5
6
7
8
9
10
macro_rules! numbers {
    {} => { 1 2 }
    // { dg-error "expecting .;. but .integer literal. found" "" { target *-*-* } .-1 }
}

pub fn foo() {
    numbers!();
}

fn main() -> i32 { 0 }