summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/issue-103826.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/fmt/issue-103826.stderr')
-rw-r--r--tests/ui/fmt/issue-103826.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/fmt/issue-103826.stderr b/tests/ui/fmt/issue-103826.stderr
new file mode 100644
index 000000000..0f27e1930
--- /dev/null
+++ b/tests/ui/fmt/issue-103826.stderr
@@ -0,0 +1,20 @@
+error: 1 positional argument in format string, but no arguments were given
+ --> $DIR/issue-103826.rs:2:14
+ |
+LL | format!("{\x7D");
+ | ^^^^^
+
+error: 1 positional argument in format string, but no arguments were given
+ --> $DIR/issue-103826.rs:4:14
+ |
+LL | format!("\x7B\x7D");
+ | ^^^^^^^^
+
+error: 2 positional arguments in format string, but no arguments were given
+ --> $DIR/issue-103826.rs:6:14
+ |
+LL | format!("{\x7D {\x7D");
+ | ^^^^^ ^^^^^
+
+error: aborting due to 3 previous errors
+