rust/src/test/ui/parser/keyword-try-as-identifier-edition2018.rs
2019-08-27 13:04:48 +02:00

6 lines
130 B
Rust

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