// Test that `try!` macros are rewritten. // run-rustfix // compile-pass #![warn(rust_2018_compatibility)] #![allow(unused_variables)] #![allow(dead_code)] fn foo() -> Result { let x: Result = Ok(22); r#try!(x); Ok(44) } fn main() { }