rust/tests/ui/parser/keyword-try-as-identifier-edition2018.rs
2023-01-11 09:32:08 +00:00

5 lines
130 B
Rust

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