1 error: `cfg` is not followed by parentheses
2 --> $DIR/cfg-attr-syntax-validation.rs:1:1
5 | ^^^^^^ help: expected syntax is: `cfg(/* predicate */)`
7 error: `cfg` is not followed by parentheses
8 --> $DIR/cfg-attr-syntax-validation.rs:4:1
11 | ^^^^^^^^^^^ help: expected syntax is: `cfg(/* predicate */)`
13 error: `cfg` predicate is not specified
14 --> $DIR/cfg-attr-syntax-validation.rs:7:1
19 error: multiple `cfg` predicates are specified
20 --> $DIR/cfg-attr-syntax-validation.rs:10:10
25 error: `cfg` predicate key cannot be a literal
26 --> $DIR/cfg-attr-syntax-validation.rs:13:7
31 error: `cfg` predicate key must be an identifier
32 --> $DIR/cfg-attr-syntax-validation.rs:16:7
37 error[E0537]: invalid predicate `a`
38 --> $DIR/cfg-attr-syntax-validation.rs:19:7
43 error[E0565]: literal in `cfg` predicate value must be a string
44 --> $DIR/cfg-attr-syntax-validation.rs:22:11
49 error[E0565]: literal in `cfg` predicate value must be a string
50 --> $DIR/cfg-attr-syntax-validation.rs:25:11
52 LL | #[cfg(a = b"hi")]
53 | ^^^^^ help: consider removing the prefix: `"hi"`
55 error: expected unsuffixed literal or identifier, found `concat!("nonexistent")`
56 --> $DIR/cfg-attr-syntax-validation.rs:30:25
58 LL | #[cfg(feature = $expr)]
61 LL | generate_s10!(concat!("nonexistent"));
62 | ------------------------------------- in this macro invocation
64 = note: this error originates in the macro `generate_s10` (in Nightly builds, run with -Z macro-backtrace for more info)
66 error: expected unsuffixed literal or identifier, found `concat!("nonexistent")`
67 --> $DIR/cfg-attr-syntax-validation.rs:30:25
69 LL | #[cfg(feature = $expr)]
72 LL | generate_s10!(concat!("nonexistent"));
73 | ------------------------------------- in this macro invocation
75 = note: this error originates in the macro `generate_s10` (in Nightly builds, run with -Z macro-backtrace for more info)
77 error: aborting due to 11 previous errors
79 Some errors have detailed explanations: E0537, E0565.
80 For more information about an error, try `rustc --explain E0537`.