fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1// Test that `try!` macros are rewritten. 2 3// run-rustfix 4// build-pass (FIXME(62277): could be check-pass?) 5 6#![warn(rust_2018_compatibility)] 7#![allow(unused_variables)] 8#![allow(dead_code)] 9#![allow(deprecated)] 10 11fn foo() -> Result<usize, ()> { 12 let x: Result<usize, ()> = Ok(22); 13 r#try!(x); 14 Ok(44) 15} 16 17fn main() { }