summary refs log tree commit diff
path: root/src/test/ui/proc-macro/macro-brackets.rs
blob: c46abf03654ced7475e9f9396cbfd95b6b80e84f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// aux-build:macro-brackets.rs

extern crate macro_brackets as bar;
use bar::doit;

macro_rules! id {
    ($($t:tt)*) => ($($t)*)
}

#[doit]
id![static X: u32 = 'a';]; //~ ERROR: mismatched types


fn main() {}