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

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