rust/tests/ui/span/E0805.stderr
Jonathan Brouwer f6cdd7eab5
Fix suggestion for the cfg! macro
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-11-04 17:30:47 +01:00

14 lines
493 B
Text

error[E0805]: malformed `cfg` macro input
--> $DIR/E0805.rs:2:8
|
LL | if cfg!(not()) { }
| ^^^^^^^^--^
| | |
| | expected a single argument 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: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0805`.