about summary refs log tree commit diff
path: root/tests/ui/panics/explicit-panic-msg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panics/explicit-panic-msg.rs')
-rw-r--r--tests/ui/panics/explicit-panic-msg.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/panics/explicit-panic-msg.rs b/tests/ui/panics/explicit-panic-msg.rs
new file mode 100644
index 00000000000..9d803578734
--- /dev/null
+++ b/tests/ui/panics/explicit-panic-msg.rs
@@ -0,0 +1,15 @@
+#![allow(unused_assignments)]
+#![allow(unused_variables)]
+#![allow(non_fmt_panics)]
+
+// run-fail
+// error-pattern:wooooo
+// ignore-emscripten no processes
+
+fn main() {
+    let mut a = 1;
+    if 1 == 1 {
+        a = 2;
+    }
+    panic!(format!("woooo{}", "o"));
+}