about summary refs log tree commit diff
path: root/tests/ui/fmt/format-raw-string-error.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/fmt/format-raw-string-error.stderr')
-rw-r--r--tests/ui/fmt/format-raw-string-error.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/fmt/format-raw-string-error.stderr b/tests/ui/fmt/format-raw-string-error.stderr
new file mode 100644
index 00000000000..8d61950d8c2
--- /dev/null
+++ b/tests/ui/fmt/format-raw-string-error.stderr
@@ -0,0 +1,10 @@
+error: invalid format string: unmatched `}` found
+  --> $DIR/format-raw-string-error.rs:2:45
+   |
+LL |     println!(r#"\'\'\'\'\'\'\'\'\'\'\'\'\'\'}"#);
+   |                                             ^ unmatched `}` in format string
+   |
+   = note: if you intended to print `}`, you can escape it using `}}`
+
+error: aborting due to previous error
+