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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
130 B
Rust
Raw Normal View History

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