rust/tests/compile-fail/panic/windows1.rs

10 lines
215 B
Rust
Raw Normal View History

2020-03-21 04:16:47 -05:00
// ignore-linux
// ignore-macos
// Test that panics on Windows give a reasonable error message.
2020-03-22 02:51:15 -05:00
// error-pattern: panicking is not supported on this target
2020-03-21 04:16:47 -05:00
fn main() {
core::panic!("this is {}", "Windows");
}