rust/tests/ui/proc-macro/macro-brackets.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
206 B
Rust
Raw Normal View History

//@ 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() {}