summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fmt/format-concat-span.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/fmt/format-concat-span.stderr')
-rw-r--r--src/test/ui/fmt/format-concat-span.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/fmt/format-concat-span.stderr b/src/test/ui/fmt/format-concat-span.stderr
new file mode 100644
index 000000000..da46f40ab
--- /dev/null
+++ b/src/test/ui/fmt/format-concat-span.stderr
@@ -0,0 +1,11 @@
+error: invalid format string: unmatched `}` found
+ --> $DIR/format-concat-span.rs:13:13
+ |
+LL | format!(concat!("abc}"));
+ | ^^^^^^^^^^^^^^^ unmatched `}` in format string
+ |
+ = note: if you intended to print `}`, you can escape it using `}}`
+ = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to previous error
+