about summary refs log tree commit diff
path: root/compiler/rustc_thread_pool/tests/simple_panic.rs
blob: b35b4d632d2b976e41d4041296e5bc62b5e031df (plain)
1
2
3
4
5
6
7
8
9
#![allow(unused_crate_dependencies)]

use rustc_thread_pool::join;

#[test]
#[should_panic(expected = "should panic")]
fn simple_panic() {
    join(|| {}, || panic!("should panic"));
}