]> git.lizzy.rs Git - rust.git/blob - tests/ui/conditional-compilation/cfg-attr-parse.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / conditional-compilation / cfg-attr-parse.stderr
1 error: malformed `cfg_attr` attribute input
2   --> $DIR/cfg-attr-parse.rs:4:1
3    |
4 LL | #[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
9 error: expected `,`, found end of `cfg_attr` input
10   --> $DIR/cfg-attr-parse.rs:8:17
11    |
12 LL | #[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
18 error: expected identifier, found `,`
19   --> $DIR/cfg-attr-parse.rs:16:18
20    |
21 LL | #[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
27 error: expected identifier, found `,`
28   --> $DIR/cfg-attr-parse.rs:28:28
29    |
30 LL | #[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
36 error: expected identifier, found `,`
37   --> $DIR/cfg-attr-parse.rs:40:40
38    |
39 LL | #[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
45 error: wrong `cfg_attr` delimiters
46   --> $DIR/cfg-attr-parse.rs:44:11
47    |
48 LL | #[cfg_attr[all(),,]]
49    |           ^^^^^^^^^
50    |
51 help: the delimiters should be `(` and `)`
52    |
53 LL | #[cfg_attr(all(),,)]
54    |           ~       ~
55
56 error: expected identifier, found `,`
57   --> $DIR/cfg-attr-parse.rs:44:18
58    |
59 LL | #[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
65 error: wrong `cfg_attr` delimiters
66   --> $DIR/cfg-attr-parse.rs:50:11
67    |
68 LL | #[cfg_attr{all(),,}]
69    |           ^^^^^^^^^
70    |
71 help: the delimiters should be `(` and `)`
72    |
73 LL | #[cfg_attr(all(),,)]
74    |           ~       ~
75
76 error: expected identifier, found `,`
77   --> $DIR/cfg-attr-parse.rs:50:18
78    |
79 LL | #[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
85 error: aborting due to 9 previous errors
86