summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/macro-brackets.rs
blob: aa0046f458229caeb5b6b58a7538a3b364017d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// aux-build:test-macros.rs

#[macro_use]
extern crate test_macros;

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

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


fn main() {}