]> git.proxmox.com Git - rustc.git/blame - src/test/ui/conditional-compilation/cfg-attr-parse.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / conditional-compilation / cfg-attr-parse.stderr
CommitLineData
60c5eb7d
XL
1error: malformed `cfg_attr` attribute input
2 --> $DIR/cfg-attr-parse.rs:4:1
0bf4aa26 3 |
532ac7d7 4LL | #[cfg_attr()]
60c5eb7d
XL
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>
0bf4aa26 8
60c5eb7d 9error: expected `,`, found end of `cfg_attr` input
0731742a 10 --> $DIR/cfg-attr-parse.rs:8:17
0bf4aa26 11 |
532ac7d7 12LL | #[cfg_attr(all())]
0bf4aa26 13 | ^ expected `,`
60c5eb7d
XL
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>
0bf4aa26
XL
17
18error: expected identifier, found `,`
0731742a 19 --> $DIR/cfg-attr-parse.rs:16:18
0bf4aa26 20 |
532ac7d7 21LL | #[cfg_attr(all(),,)]
0bf4aa26 22 | ^ expected identifier
60c5eb7d
XL
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>
0bf4aa26
XL
26
27error: expected identifier, found `,`
0731742a 28 --> $DIR/cfg-attr-parse.rs:28:28
0bf4aa26 29 |
532ac7d7 30LL | #[cfg_attr(all(), must_use,,)]
0bf4aa26 31 | ^ expected identifier
60c5eb7d
XL
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>
0bf4aa26
XL
35
36error: expected identifier, found `,`
0731742a 37 --> $DIR/cfg-attr-parse.rs:40:40
0bf4aa26 38 |
532ac7d7 39LL | #[cfg_attr(all(), must_use, deprecated,,)]
0bf4aa26 40 | ^ expected identifier
60c5eb7d
XL
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(),,)]
94222f64 54 | ~ ~
60c5eb7d
XL
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(),,)]
94222f64 74 | ~ ~
60c5eb7d
XL
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>
0bf4aa26 84
60c5eb7d 85error: aborting due to 9 previous errors
0bf4aa26 86