diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-75307.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-75307.stderr b/src/test/ui/issues/issue-75307.stderr new file mode 100644 index 000000000..10c952006 --- /dev/null +++ b/src/test/ui/issues/issue-75307.stderr @@ -0,0 +1,10 @@ +error: invalid reference to positional arguments 1 and 2 (there is 1 argument) + --> $DIR/issue-75307.rs:2:17 + | +LL | format!(r"{}{}{}", named_arg=1); + | ^^^^ + | + = note: positional arguments are zero-based + +error: aborting due to previous error + |