summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panics/test-should-panic-bad-message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/panics/test-should-panic-bad-message.rs')
-rw-r--r--src/test/ui/panics/test-should-panic-bad-message.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/panics/test-should-panic-bad-message.rs b/src/test/ui/panics/test-should-panic-bad-message.rs
new file mode 100644
index 000000000..a82c4e144
--- /dev/null
+++ b/src/test/ui/panics/test-should-panic-bad-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_bar() {
+ panic!("bar")
+}