blob: c7f504046baed6422c41ced9c64d120e57659222 [file] [log] [blame]
// error-pattern:thread '<unnamed>' panicked at 'test'
// ignore-emscripten Needs threads
use std::thread;
fn main() {
let r: Result<(), _> = thread::spawn(move || {
panic!("test");
})
.join();
assert!(r.is_ok());
}