blob: 9b9a9f7840352dbafce77af25bc30181c4cfaf0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ 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!();
}
|