summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/assert-macro-owned.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/macros/assert-macro-owned.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/macros/assert-macro-owned.rs b/src/test/ui/macros/assert-macro-owned.rs
new file mode 100644
index 000000000..753675872
--- /dev/null
+++ b/src/test/ui/macros/assert-macro-owned.rs
@@ -0,0 +1,9 @@
+// run-fail
+// error-pattern:panicked at 'test-assert-owned'
+// ignore-emscripten no processes
+
+#![allow(non_fmt_panics)]
+
+fn main() {
+ assert!(false, "test-assert-owned".to_string());
+}