Skip to content

Commit 0ae6288

Browse files
committed
test windows panic message
1 parent 0f1713f commit 0ae6288

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/compile-fail/panic/windows.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// ignore-linux
2+
// ignore-macos
3+
4+
// Test that panics on Windows give a reasonable error message.
5+
6+
// error-pattern: panicking is not supported on this platform
7+
fn main() {
8+
panic!("this is Windows");
9+
}

0 commit comments

Comments
 (0)