summary refs log tree commit diff
path: root/src/test/run-fail/panic-task-name-none.rs
blob: c7f504046baed6422c41ced9c64d120e57659222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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());
}