rust/tests/compile-fail/panic/windows3.rs
2020-03-21 10:17:57 +01:00

11 lines
224 B
Rust

// ignore-linux
// ignore-macos
// Test that panics on Windows give a reasonable error message.
// error-pattern: panicking is not supported on this platform
#[allow(unconditional_panic)]
fn main() {
let _val = 1/0;
}