fparkan/vendor/rayon-core/tests/simple_panic.rs

8 lines
140 B
Rust
Raw Normal View History

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