mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
20 lines
287 B
Rust
20 lines
287 B
Rust
//@ run-pass
|
|
#![allow(unused_attributes)]
|
|
//@ aux-build:issue-29485.rs
|
|
//@ needs-unwind
|
|
//@ 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!();
|
|
}
|