|
1 | 1 | error: `cfg` is not followed by parentheses
|
2 |
| - --> $DIR/cfg-attr-syntax-validation.rs:1:1 |
| 2 | + --> $DIR/cfg-attr-syntax-validation.rs:11:1 |
3 | 3 | |
|
4 | 4 | LL | #[cfg] //~ ERROR `cfg` is not followed by parentheses
|
5 | 5 | | ^^^^^^ help: expected syntax is: `cfg(/* predicate */)`
|
6 | 6 |
|
7 | 7 | error: `cfg` is not followed by parentheses
|
8 |
| - --> $DIR/cfg-attr-syntax-validation.rs:4:1 |
| 8 | + --> $DIR/cfg-attr-syntax-validation.rs:14:1 |
9 | 9 | |
|
10 | 10 | LL | #[cfg = 10] //~ ERROR `cfg` is not followed by parentheses
|
11 | 11 | | ^^^^^^^^^^^ help: expected syntax is: `cfg(/* predicate */)`
|
12 | 12 |
|
13 | 13 | error: `cfg` predicate is not specified
|
14 |
| - --> $DIR/cfg-attr-syntax-validation.rs:7:1 |
| 14 | + --> $DIR/cfg-attr-syntax-validation.rs:17:1 |
15 | 15 | |
|
16 | 16 | LL | #[cfg()] //~ ERROR `cfg` predicate is not specified
|
17 | 17 | | ^^^^^^^^
|
18 | 18 |
|
19 | 19 | error: multiple `cfg` predicates are specified
|
20 |
| - --> $DIR/cfg-attr-syntax-validation.rs:10:10 |
| 20 | + --> $DIR/cfg-attr-syntax-validation.rs:20:10 |
21 | 21 | |
|
22 | 22 | LL | #[cfg(a, b)] //~ ERROR multiple `cfg` predicates are specified
|
23 | 23 | | ^
|
24 | 24 |
|
25 | 25 | error: `cfg` predicate key cannot be a literal
|
26 |
| - --> $DIR/cfg-attr-syntax-validation.rs:13:7 |
| 26 | + --> $DIR/cfg-attr-syntax-validation.rs:23:7 |
27 | 27 | |
|
28 | 28 | LL | #[cfg("str")] //~ ERROR `cfg` predicate key cannot be a literal
|
29 | 29 | | ^^^^^
|
30 | 30 |
|
31 | 31 | error: `cfg` predicate key must be an identifier
|
32 |
| - --> $DIR/cfg-attr-syntax-validation.rs:16:7 |
| 32 | + --> $DIR/cfg-attr-syntax-validation.rs:26:7 |
33 | 33 | |
|
34 | 34 | LL | #[cfg(a::b)] //~ ERROR `cfg` predicate key must be an identifier
|
35 | 35 | | ^^^^
|
36 | 36 |
|
37 | 37 | error[E0537]: invalid predicate `a`
|
38 |
| - --> $DIR/cfg-attr-syntax-validation.rs:19:7 |
| 38 | + --> $DIR/cfg-attr-syntax-validation.rs:29:7 |
39 | 39 | |
|
40 | 40 | LL | #[cfg(a())] //~ ERROR invalid predicate `a`
|
41 | 41 | | ^^^
|
42 | 42 |
|
43 | 43 | error: literal in `cfg` predicate value must be a string
|
44 |
| - --> $DIR/cfg-attr-syntax-validation.rs:22:11 |
| 44 | + --> $DIR/cfg-attr-syntax-validation.rs:32:11 |
45 | 45 | |
|
46 | 46 | LL | #[cfg(a = 10)] //~ ERROR literal in `cfg` predicate value must be a string
|
47 | 47 | | ^^
|
48 | 48 |
|
49 | 49 | error: `cfg` is not a well-formed meta-item
|
50 |
| - --> $DIR/cfg-attr-syntax-validation.rs:27:9 |
| 50 | + --> $DIR/cfg-attr-syntax-validation.rs:37:9 |
51 | 51 | |
|
52 | 52 | LL | #[cfg(feature = $expr)] //~ ERROR `cfg` is not a well-formed meta-item
|
53 | 53 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: expected syntax is: `#[cfg(/* predicate */)]`
|
|
0 commit comments