diff options
Diffstat (limited to 'tests/ui/proc-macro/macro-brackets.rs')
-rw-r--r-- | tests/ui/proc-macro/macro-brackets.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/macro-brackets.rs b/tests/ui/proc-macro/macro-brackets.rs new file mode 100644 index 000000000..aa0046f45 --- /dev/null +++ b/tests/ui/proc-macro/macro-brackets.rs @@ -0,0 +1,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() {} |