]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/if_same_then_else.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / if_same_then_else.rs
index d1213e5e5fdaf6db99c52fa507fe2e8bc4091b25..ecdc5623ca585b75c9bbabfd098037fb7167f1d3 100644 (file)
@@ -215,10 +215,10 @@ fn if_same_then_else() -> Result<&'static str, ()> {
     };
 
     if true {
-        try!(Ok("foo"));
+        Ok("foo")?;
     } else {
         //~ ERROR same body as `if` block
-        try!(Ok("foo"));
+        Ok("foo")?;
     }
 
     if true {