summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/keyword-try-as-identifier-edition2018.rs
blob: 4fa37bdb057b738461bff235721feb70c014e5fb (plain)
1
2
3
4
5
// compile-flags: --edition 2018

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