blob: dbb795f57aa59ec36fde38dd957206e3e0d470cf [file] [log] [blame]
#![crate_type = "lib"]
#![feature(macro_attr)]
macro_rules! attr {
attr[$($args:tt)*] { $($body:tt)* } => {
//~^ ERROR: macro attribute argument matchers require parentheses
//~v ERROR: attr:
compile_error!(concat!(
"attr: args=\"",
stringify!($($args)*),
"\" body=\"",
stringify!($($body)*),
"\"",
));
};
}
#[attr]
struct S;