Closed
Description
Currently, the following program will not compile because Once
isn't RefUnwindSafe
. Is this the desired behavior, or should we consider making it RefUnwindSafe
or UnwindSafe
?
use std::sync::Once;
use std::panic::catch_unwind;
fn main() {
let o = Once::new();
catch_unwind(|| o.call_once(|| panic!("foo")));
}