rust/tests/ui/conditional-compilation/cfg-attr-parse.stderr

87 lines
3.1 KiB
Plaintext
Raw Normal View History

2019-12-04 23:45:50 -06:00
error: malformed `cfg_attr` attribute input
--> $DIR/cfg-attr-parse.rs:4:1
|
2019-03-09 06:03:44 -06:00
LL | #[cfg_attr()]
2019-12-04 23:45:50 -06:00
| ^^^^^^^^^^^^^ help: missing condition and attribute: `#[cfg_attr(condition, attribute, other_attribute, ...)]`
|
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
2019-12-04 23:45:50 -06:00
error: expected `,`, found end of `cfg_attr` input
2019-01-04 11:33:36 -06:00
--> $DIR/cfg-attr-parse.rs:8:17
|
2019-03-09 06:03:44 -06:00
LL | #[cfg_attr(all())]
| ^ expected `,`
2019-12-04 23:45:50 -06:00
|
= help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
error: expected identifier, found `,`
2019-01-04 11:33:36 -06:00
--> $DIR/cfg-attr-parse.rs:16:18
|
2019-03-09 06:03:44 -06:00
LL | #[cfg_attr(all(),,)]
| ^ expected identifier
2019-12-04 23:45:50 -06:00
|
= help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
error: expected identifier, found `,`
2019-01-04 11:33:36 -06:00
--> $DIR/cfg-attr-parse.rs:28:28
|
2019-03-09 06:03:44 -06:00
LL | #[cfg_attr(all(), must_use,,)]
| ^ expected identifier
2019-12-04 23:45:50 -06:00
|
= help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
error: expected identifier, found `,`
2019-01-04 11:33:36 -06:00
--> $DIR/cfg-attr-parse.rs:40:40
|
2019-03-09 06:03:44 -06:00
LL | #[cfg_attr(all(), must_use, deprecated,,)]
| ^ expected identifier
2019-12-04 23:45:50 -06:00
|
= help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
error: wrong `cfg_attr` delimiters
--> $DIR/cfg-attr-parse.rs:44:11
|
LL | #[cfg_attr[all(),,]]
| ^^^^^^^^^
|
help: the delimiters should be `(` and `)`
|
LL | #[cfg_attr(all(),,)]
| ~ ~
2019-12-04 23:45:50 -06:00
error: expected identifier, found `,`
--> $DIR/cfg-attr-parse.rs:44:18
|
LL | #[cfg_attr[all(),,]]
| ^ expected identifier
|
= help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
error: wrong `cfg_attr` delimiters
--> $DIR/cfg-attr-parse.rs:50:11
|
LL | #[cfg_attr{all(),,}]
| ^^^^^^^^^
|
help: the delimiters should be `(` and `)`
|
LL | #[cfg_attr(all(),,)]
| ~ ~
2019-12-04 23:45:50 -06:00
error: expected identifier, found `,`
--> $DIR/cfg-attr-parse.rs:50:18
|
LL | #[cfg_attr{all(),,}]
| ^ expected identifier
|
= help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]`
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
2019-12-04 23:45:50 -06:00
error: aborting due to 9 previous errors