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