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

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