rust/tests/ui/rust-2018/try-ident.rs

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

16 lines
330 B
Rust
Raw Normal View History

// run-rustfix
// check-pass
#![warn(rust_2018_compatibility)]
fn main() {
try();
//~^ WARNING `try` is a keyword in the 2018 edition
2021-06-16 12:27:44 +00:00
//~| WARNING this is accepted in the current edition
}
fn try() {
//~^ WARNING `try` is a keyword in the 2018 edition
2021-06-16 12:27:44 +00:00
//~| WARNING this is accepted in the current edition
}