mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
11 lines
222 B
Rust
11 lines
222 B
Rust
// ignore-linux
|
|
// ignore-macos
|
|
|
|
// Test that panics on Windows give a reasonable error message.
|
|
|
|
// error-pattern: panicking is not supported on this target
|
|
#[allow(unconditional_panic)]
|
|
fn main() {
|
|
let _val = 1/0;
|
|
}
|