rust/src/test/ui/issues/issue-29485.rs
2019-07-27 18:56:16 +03:00

19 lines
267 B
Rust

// run-pass
#![allow(unused_attributes)]
// aux-build:issue-29485.rs
// ignore-emscripten no threads
#[feature(recover)]
extern crate a;
fn main() {
let _ = std::thread::spawn(move || {
a::f(&mut a::X(0), g);
}).join();
}
fn g() {
panic!();
}