1 #[cfg] //~ ERROR `cfg` is not followed by parentheses
4 #[cfg = 10] //~ ERROR `cfg` is not followed by parentheses
7 #[cfg()] //~ ERROR `cfg` predicate is not specified
10 #[cfg(a, b)] //~ ERROR multiple `cfg` predicates are specified
13 #[cfg("str")] //~ ERROR `cfg` predicate key cannot be a literal
16 #[cfg(a::b)] //~ ERROR `cfg` predicate key must be an identifier
19 #[cfg(a())] //~ ERROR invalid predicate `a`
22 #[cfg(a = 10)] //~ ERROR literal in `cfg` predicate value must be a string
25 #[cfg(a = b"hi")] //~ ERROR literal in `cfg` predicate value must be a string
28 macro_rules! generate_s10 {
30 #[cfg(feature = $expr)]
31 //~^ ERROR expected unsuffixed literal or identifier, found `concat!("nonexistent")`
32 //~| ERROR expected unsuffixed literal or identifier, found `concat!("nonexistent")`
37 generate_s10!(concat!("nonexistent"));