blob: 937390a6da5bae29a19dc048ffab7b6279c45eb5 [file] [log] [blame] [edit]
macro_rules! mac {
($attr_item: meta) => {
#[cfg($attr_item)]
//~^ ERROR expected unsuffixed literal, found `meta` metavariable
struct S;
}
}
mac!(an(arbitrary token stream));
#[cfg(feature = -1)]
//~^ ERROR expected unsuffixed literal, found `-`
fn handler() {}
fn main() {}