summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/keyword-if-as-identifier.rs
blob: 0bd5756afce7f95c18d4bf1c8e017a9ce2ff390b (plain)
1
2
3
4
5
// This file was auto-generated using 'src/etc/generate-keyword-tests.py if'

fn main() {
    let if = "foo"; //~ error: expected identifier, found keyword `if`
}