fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.1 KiB30 linesraw
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>
8
9error: malformed `cfg_attr` attribute input
10  --> $DIR/malformed-special-attrs.rs:4:1
11   |
12LL | #[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
17error: malformed `derive` attribute input
18  --> $DIR/malformed-special-attrs.rs:7:1
19   |
20LL | #[derive]
21   | ^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]`
22
23error: malformed `derive` attribute input
24  --> $DIR/malformed-special-attrs.rs:10:1
25   |
26LL | #[derive = ""]
27   | ^^^^^^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]`
28
29error: aborting due to 4 previous errors
30