blob: 937390a6da5bae29a19dc048ffab7b6279c45eb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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() {}
|