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

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