1 // Test that `try!` macros are rewritten.
6 #![warn(rust_2018_compatibility)]
10 fn foo() -> Result<usize, ()> {
11 let x: Result<usize, ()> = Ok(22);
13 //~^ WARNING `try` is a keyword in the 2018 edition
14 //~| WARNING this is accepted in the current edition