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

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