fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
921 B28 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: expected `(`, found `=`
10  --> $DIR/malformed-special-attrs.rs:4:12
11   |
12LL | #[cfg_attr = ""]
13   |            ^ expected `(`
14
15error: malformed `derive` attribute input
16  --> $DIR/malformed-special-attrs.rs:7:1
17   |
18LL | #[derive]
19   | ^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]`
20
21error: malformed `derive` attribute input
22  --> $DIR/malformed-special-attrs.rs:10:1
23   |
24LL | #[derive = ""]
25   | ^^^^^^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]`
26
27error: aborting due to 4 previous errors
28