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

6 lines
141 B
Rust
Raw Normal View History

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