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