|
1 |
| -error: bad `cfg_attr` attribute |
| 1 | +error: expected `(`, found end of attribute |
2 | 2 | --> $DIR/malformed-special-attrs.rs:1:1
|
3 | 3 | |
|
4 | 4 | LL | #[cfg_attr]
|
5 |
| - | ^^^^^^^^^^^ missing condition and attribute |
6 |
| - | |
7 |
| - = note: `cfg_attr` must be of the form: `#[cfg_attr(condition, attribute, other_attribute, ...)]` |
8 |
| - = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute> |
| 5 | + | ^ expected `(` |
9 | 6 |
|
10 | 7 | error: expected `(`, found `=`
|
11 | 8 | --> $DIR/malformed-special-attrs.rs:4:12
|
12 | 9 | |
|
13 | 10 | LL | #[cfg_attr = ""]
|
14 | 11 | | ^ expected `(`
|
15 | 12 |
|
16 |
| -error: bad `derive` attribute |
| 13 | +error: attribute must be of the form `#[derive(Trait1, Trait2, ...)]` |
17 | 14 | --> $DIR/malformed-special-attrs.rs:7:1
|
18 | 15 | |
|
19 | 16 | LL | #[derive]
|
20 |
| - | ^^^^^^^^^ missing traits to be derived |
21 |
| - | |
22 |
| - = note: `derive` must be of the form: `#[derive(Trait1, Trait2, ...)]` |
| 17 | + | ^^^^^^^^^ |
23 | 18 |
|
24 |
| -error: bad `derive` attribute |
| 19 | +error: attribute must be of the form `#[derive(Trait1, Trait2, ...)]` |
25 | 20 | --> $DIR/malformed-special-attrs.rs:10:1
|
26 | 21 | |
|
27 | 22 | LL | #[derive = ""]
|
28 |
| - | ^^^^^^^^^^^^^^ missing traits to be derived |
29 |
| - | |
30 |
| - = note: `derive` must be of the form: `#[derive(Trait1, Trait2, ...)]` |
| 23 | + | ^^^^^^^^^^^^^^ |
31 | 24 |
|
32 | 25 | error: aborting due to 4 previous errors
|
33 | 26 |
|
0 commit comments