1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// run-pass // ignore-wasm32-bare compiled with panic=abort by default // compile-flags: --test #![feature(allow_fail)] #[test] #[allow_fail] fn test1() { panic!(); } #[test] #[allow_fail] fn test2() { assert!(true); }