]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panics/panic-task-name-none.rs
Rollup merge of #91312 - terrarier2111:anon-const-ice, r=jackh726
[rust.git] / src / test / 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 }