Files
rust/compiler/rustc_thread_pool/tests/simple_panic.rs

10 lines
185 B
Rust
Raw Permalink Normal View History

2025-06-11 12:32:09 -07:00
#![allow(unused_crate_dependencies)]
use rustc_thread_pool::join;
#[test]
#[should_panic(expected = "should panic")]
fn simple_panic() {
join(|| {}, || panic!("should panic"));
}