rust/src/test/ui/parser/keyword-try-as-identifier-edition2018.rs

6 lines
127 B
Rust
Raw Normal View History

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