mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00
10 lines
185 B
Rust
10 lines
185 B
Rust
#![allow(unused_crate_dependencies)]
|
|
|
|
use rustc_thread_pool::join;
|
|
|
|
#[test]
|
|
#[should_panic(expected = "should panic")]
|
|
fn simple_panic() {
|
|
join(|| {}, || panic!("should panic"));
|
|
}
|