rust/tests/ui/parser/keyword-try-as-identifier-e...

6 lines
131 B
Rust

//@ compile-flags: --edition 2018
fn main() {
let try = "foo"; //~ error: expected identifier, found reserved keyword `try`
}