2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_attributes)]
|
2016-01-29 11:11:24 +01:00
|
|
|
//@ aux-build:issue-29485.rs
|
2021-12-03 15:32:51 +00:00
|
|
|
//@ needs-unwind
|
2025-01-23 17:05:01 +08:00
|
|
|
//@ needs-threads
|
2016-01-29 11:11:24 +01:00
|
|
|
|
|
|
|
|
#[feature(recover)]
|
|
|
|
|
|
|
|
|
|
extern crate a;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let _ = std::thread::spawn(move || {
|
|
|
|
|
a::f(&mut a::X(0), g);
|
|
|
|
|
}).join();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn g() {
|
|
|
|
|
panic!();
|
|
|
|
|
}
|