summary refs log tree commit diff
path: root/tests/ui/parser/attribute/attr-unquoted-ident.fixed
blob: 636508b5615aac5ad710af454e3e3549b7c28a82 (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!();
}