mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 09:06:27 +00:00
20 lines
456 B
Rust
20 lines
456 B
Rust
//@ run-fail
|
|
//@ error-pattern:thread 'owned name' panicked
|
|
//@ error-pattern:test
|
|
//@ needs-threads
|
|
|
|
use std::thread::Builder;
|
|
|
|
fn main() {
|
|
let r: () = Builder::new()
|
|
.name("owned name".to_string())
|
|
.spawn(move || {
|
|
panic!("test");
|
|
()
|
|
})
|
|
.unwrap()
|
|
.join()
|
|
.unwrap();
|
|
panic!();
|
|
}
|