1error: malformed `cfg_attr` attribute input
2  --> $DIR/cfg-attr-parse.rs:4: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 end of `cfg_attr` input
10  --> $DIR/cfg-attr-parse.rs:8:17
11   |
12LL | #[cfg_attr(all())]
13   |                 ^ expected `,`
14   |
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>
17
18error: expected identifier, found `,`
19  --> $DIR/cfg-attr-parse.rs:16:18
20   |
21LL | #[cfg_attr(all(),,)]
22   |                  ^ expected identifier
23   |
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>
26
27error: expected identifier, found `,`
28  --> $DIR/cfg-attr-parse.rs:28:28
29   |
30LL | #[cfg_attr(all(), must_use,,)]
31   |                            ^ expected identifier
32   |
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>
35
36error: expected identifier, found `,`
37  --> $DIR/cfg-attr-parse.rs:40:40
38   |
39LL | #[cfg_attr(all(), must_use, deprecated,,)]
40   |                                        ^ expected identifier
41   |
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>
44
45error: wrong `cfg_attr` delimiters
46  --> $DIR/cfg-attr-parse.rs:44:11
47   |
48LL | #[cfg_attr[all(),,]]
49   |           ^^^^^^^^^
50   |
51help: the delimiters should be `(` and `)`
52   |
53LL | #[cfg_attr(all(),,)]
54   |           ~       ~
55
56error: expected identifier, found `,`
57  --> $DIR/cfg-attr-parse.rs:44:18
58   |
59LL | #[cfg_attr[all(),,]]
60   |                  ^ expected identifier
61   |
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>
64
65error: wrong `cfg_attr` delimiters
66  --> $DIR/cfg-attr-parse.rs:50:11
67   |
68LL | #[cfg_attr{all(),,}]
69   |           ^^^^^^^^^
70   |
71help: the delimiters should be `(` and `)`
72   |
73LL | #[cfg_attr(all(),,)]
74   |           ~       ~
75
76error: expected identifier, found `,`
77  --> $DIR/cfg-attr-parse.rs:50:18
78   |
79LL | #[cfg_attr{all(),,}]
80   |                  ^ expected identifier
81   |
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>
84
85error: aborting due to 9 previous errors
86
87