]> git.proxmox.com Git - rustc.git/blame - src/test/ui/malformed/malformed-special-attrs.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / malformed / malformed-special-attrs.stderr
CommitLineData
dc9dc135
XL
1error: malformed `cfg_attr` attribute input
2 --> $DIR/malformed-special-attrs.rs:1:1
3 |
4LL | #[cfg_attr]
5 | ^^^^^^^^^^^ help: missing condition and attribute: `#[cfg_attr(condition, attribute, other_attribute, ...)]`
6 |
7 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
9fa01778 8
60c5eb7d
XL
9error: malformed `cfg_attr` attribute input
10 --> $DIR/malformed-special-attrs.rs:4:1
9fa01778 11 |
532ac7d7 12LL | #[cfg_attr = ""]
60c5eb7d
XL
13 | ^^^^^^^^^^^^^^^^ help: missing condition and attribute: `#[cfg_attr(condition, attribute, other_attribute, ...)]`
14 |
15 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
9fa01778 16
dc9dc135 17error: malformed `derive` attribute input
9fa01778
XL
18 --> $DIR/malformed-special-attrs.rs:7:1
19 |
532ac7d7 20LL | #[derive]
6a06907d 21 | ^^^^^^^^^ help: must be of the form: `#[derive(Trait1, Trait2, ...)]`
9fa01778 22
dc9dc135 23error: malformed `derive` attribute input
9fa01778
XL
24 --> $DIR/malformed-special-attrs.rs:10:1
25 |
532ac7d7 26LL | #[derive = ""]
6a06907d 27 | ^^^^^^^^^^^^^^ help: must be of the form: `#[derive(Trait1, Trait2, ...)]`
9fa01778
XL
28
29error: aborting due to 4 previous errors
30