]> git.lizzy.rs Git - rust.git/blob - src/test/ui/malformed/malformed-special-attrs.stderr
Rollup merge of #67102 - Aaron1011:patch-3, r=Mark-Simulacrum
[rust.git] / src / test / ui / malformed / malformed-special-attrs.stderr
1 error: malformed `cfg_attr` attribute input
2   --> $DIR/malformed-special-attrs.rs:1:1
3    |
4 LL | #[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>
8
9 error: malformed `cfg_attr` attribute input
10   --> $DIR/malformed-special-attrs.rs:4:1
11    |
12 LL | #[cfg_attr = ""]
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>
16
17 error: malformed `derive` attribute input
18   --> $DIR/malformed-special-attrs.rs:7:1
19    |
20 LL | #[derive]
21    | ^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]`
22
23 error: malformed `derive` attribute input
24   --> $DIR/malformed-special-attrs.rs:10:1
25    |
26 LL | #[derive = ""]
27    | ^^^^^^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]`
28
29 error: aborting due to 4 previous errors
30