blob: 9a4c187f37b27a91c806e9f7f6ab495ed74e0803 [file] [log] [blame] [edit]
error: macro requires a cfg-pattern as an argument
--> $DIR/cfg.rs:2:5
|
LL | cfg!();
| ^^^^^^ cfg-pattern required
error[E0539]: malformed `cfg` macro input
--> $DIR/cfg.rs:3:5
|
LL | cfg!(123);
| ^^^^^---^
| | |
| | expected a valid identifier here
| help: must be of the form: `cfg!(predicate)`
|
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
error[E0539]: malformed `cfg` macro input
--> $DIR/cfg.rs:4:5
|
LL | cfg!(foo = 123);
| ^^^^^^^^^^^---^
| | |
| | expected a string literal here
| help: must be of the form: `cfg!(predicate)`
|
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
error: expected 1 cfg-pattern
--> $DIR/cfg.rs:5:5
|
LL | cfg!(foo, bar);
| ^^^^^^^^^^^^^^
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0539`.