1 error: malformed `cfg_attr` attribute input
2 --> $DIR/cfg-attr-parse.rs:4:1
5 | ^^^^^^^^^^^^^ help: missing condition and attribute: `#[cfg_attr(condition, attribute, other_attribute, ...)]`
7 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
9 error: expected `,`, found end of `cfg_attr` input
10 --> $DIR/cfg-attr-parse.rs:8:17
12 LL | #[cfg_attr(all())]
15 = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
16 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
18 error: expected identifier, found `,`
19 --> $DIR/cfg-attr-parse.rs:16:18
21 LL | #[cfg_attr(all(),,)]
22 | ^ expected identifier
24 = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
25 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
27 error: expected identifier, found `,`
28 --> $DIR/cfg-attr-parse.rs:28:28
30 LL | #[cfg_attr(all(), must_use,,)]
31 | ^ expected identifier
33 = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
34 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
36 error: expected identifier, found `,`
37 --> $DIR/cfg-attr-parse.rs:40:40
39 LL | #[cfg_attr(all(), must_use, deprecated,,)]
40 | ^ expected identifier
42 = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
43 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
45 error: wrong `cfg_attr` delimiters
46 --> $DIR/cfg-attr-parse.rs:44:11
48 LL | #[cfg_attr[all(),,]]
51 help: the delimiters should be `(` and `)`
53 LL | #[cfg_attr(all(),,)]
56 error: expected identifier, found `,`
57 --> $DIR/cfg-attr-parse.rs:44:18
59 LL | #[cfg_attr[all(),,]]
60 | ^ expected identifier
62 = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
63 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
65 error: wrong `cfg_attr` delimiters
66 --> $DIR/cfg-attr-parse.rs:50:11
68 LL | #[cfg_attr{all(),,}]
71 help: the delimiters should be `(` and `)`
73 LL | #[cfg_attr(all(),,)]
76 error: expected identifier, found `,`
77 --> $DIR/cfg-attr-parse.rs:50:18
79 LL | #[cfg_attr{all(),,}]
80 | ^ expected identifier
82 = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
83 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
85 error: aborting due to 9 previous errors