summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panics/panic-task-name-none.rs
blob: 4e95fb5bdb8037359c8ba0847a635b001d579265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-fail
// 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());
}