File: simple_panic.rs

package info (click to toggle)
rust-rayon-core 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 528 kB
  • sloc: makefile: 2
file content (7 lines) | stat: -rw-r--r-- 140 bytes parent folder | download | duplicates (85)
1
2
3
4
5
6
7
use rayon_core::join;

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