]> git.lizzy.rs Git - rust.git/blob - tests/ui/panics/panic-task-name-none.rs
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / ui / panics / panic-task-name-none.rs
1 // run-fail
2 // error-pattern:thread '<unnamed>' panicked at 'test'
3 // ignore-emscripten Needs threads
4
5 use std::thread;
6
7 fn main() {
8     let r: Result<(), _> = thread::spawn(move || {
9                                panic!("test");
10                            })
11                                .join();
12     assert!(r.is_ok());
13 }