summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/issue-103826.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/fmt/issue-103826.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/fmt/issue-103826.rs b/tests/ui/fmt/issue-103826.rs
new file mode 100644
index 000000000..a11ec37a0
--- /dev/null
+++ b/tests/ui/fmt/issue-103826.rs
@@ -0,0 +1,8 @@
+fn main() {
+ format!("{\x7D");
+ //~^ ERROR 1 positional argument in format string, but no arguments were given
+ format!("\x7B\x7D");
+ //~^ ERROR 1 positional argument in format string, but no arguments were given
+ format!("{\x7D {\x7D");
+ //~^ ERROR 2 positional arguments in format string, but no arguments were given
+}