2020-03-21 10:16:47 +01:00
|
|
|
// ignore-linux
|
|
|
|
// ignore-macos
|
|
|
|
|
|
|
|
// Test that panics on Windows give a reasonable error message.
|
|
|
|
|
2020-03-22 08:51:15 +01:00
|
|
|
// error-pattern: panicking is not supported on this target
|
2020-03-21 10:16:47 +01:00
|
|
|
#[allow(unconditional_panic)]
|
|
|
|
fn main() {
|
|
|
|
let _val = 1/0;
|
|
|
|
}
|