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

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