]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/try-ident.fixed
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[rust.git] / src / test / ui / rust-2018 / try-ident.fixed
1 // run-rustfix
2 // check-pass
3
4 #![warn(rust_2018_compatibility)]
5
6 fn main() {
7     r#try();
8     //~^ WARNING `try` is a keyword in the 2018 edition
9     //~| WARNING it will become a hard error in the 2018 edition!
10 }
11
12 fn r#try() {
13     //~^ WARNING `try` is a keyword in the 2018 edition
14     //~| WARNING it will become a hard error in the 2018 edition!
15 }