]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/pass/catch.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / src / tools / miri / tests / pass / catch.rs
1 use std::panic::{catch_unwind, AssertUnwindSafe};
2
3 fn main() {
4     let mut i = 3;
5     let _val = catch_unwind(AssertUnwindSafe(|| i -= 2));
6     println!("{}", i);
7 }