rust/tests/ui/macros/cfg.rs
Jonathan Brouwer a628e71edf
Add ParsedDescription to the attribute parsers
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-11-03 18:27:06 +01:00

7 lines
230 B
Rust

fn main() {
cfg!(); //~ ERROR macro requires a cfg-pattern
cfg!(123); //~ ERROR malformed `cfg` macro input
cfg!(foo = 123); //~ ERROR malformed `cfg` macro input
cfg!(foo, bar); //~ ERROR expected 1 cfg-pattern
}