2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: -Zdeduplicate-diagnostics=yes
|
|
|
|
|
//@ run-rustfix
|
2023-12-26 18:34:44 -08:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
#[cfg(key=foo)]
|
|
|
|
|
//~^ ERROR expected unsuffixed literal, found `foo`
|
|
|
|
|
//~| HELP surround the identifier with quotation marks to parse it as a string
|
|
|
|
|
println!();
|
|
|
|
|
#[cfg(key="bar")]
|
|
|
|
|
println!();
|
|
|
|
|
#[cfg(key=foo bar baz)]
|
|
|
|
|
//~^ ERROR expected unsuffixed literal, found `foo`
|
|
|
|
|
//~| HELP surround the identifier with quotation marks to parse it as a string
|
|
|
|
|
println!();
|
|
|
|
|
}
|