mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 09:38:17 +00:00
15 lines
325 B
Rust
15 lines
325 B
Rust
//@ run-fail
|
|
//@ error-pattern:thread '<unnamed>' panicked
|
|
//@ error-pattern:test
|
|
//@ needs-threads
|
|
|
|
use std::thread;
|
|
|
|
fn main() {
|
|
let r: Result<(), _> = thread::spawn(move || {
|
|
panic!("test");
|
|
})
|
|
.join();
|
|
assert!(r.is_ok());
|
|
}
|