diff options
Diffstat (limited to 'src/test/ui/panics/test-should-panic-no-message.rs')
-rw-r--r-- | src/test/ui/panics/test-should-panic-no-message.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/panics/test-should-panic-no-message.rs b/src/test/ui/panics/test-should-panic-no-message.rs new file mode 100644 index 000000000..13f67a41c --- /dev/null +++ b/src/test/ui/panics/test-should-panic-no-message.rs @@ -0,0 +1,10 @@ +// run-fail +// compile-flags: --test +// check-stdout +// ignore-emscripten no processes + +#[test] +#[should_panic(expected = "foo")] +pub fn test_explicit() { + panic!() +} |