rust/tests/ui/parser/keyword-try-as-identifier-edition2018.rs
2024-02-16 20:02:50 +00:00

6 lines
131 B
Rust

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