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

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