]> git.lizzy.rs Git - rust.git/blobdiff - tests/pass/catch.rs
Manual adjustments
[rust.git] / tests / pass / catch.rs
index 745e186a8e17a940d551ae71c8f5a293d04de112..4ede23e68ce253eeab844e4397a10e0f51662760 100644 (file)
@@ -2,8 +2,6 @@
 
 fn main() {
     let mut i = 3;
-    let _val = catch_unwind(AssertUnwindSafe(|| {
-        i -= 2;
-    }));
+    let _val = catch_unwind(AssertUnwindSafe(|| i -= 2));
     println!("{}", i);
 }