mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-17 06:24:39 +00:00
16 lines
478 B
Plaintext
16 lines
478 B
Plaintext
// compile-flags: -Zdeduplicate-diagnostics=yes
|
|
// run-rustfix
|
|
|
|
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!();
|
|
}
|