mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
23 lines
603 B
Plaintext
23 lines
603 B
Plaintext
error: redundant argument
|
|
--> $DIR/issue-105225-named-args.rs:5:21
|
|
|
|
|
LL | println!("{x}", x, x = y);
|
|
| ^
|
|
|
|
|
note: the formatting specifier is referencing the binding already
|
|
--> $DIR/issue-105225-named-args.rs:5:16
|
|
|
|
|
LL | println!("{x}", x, x = y);
|
|
| ^
|
|
|
|
error: duplicate argument named `x`
|
|
--> $DIR/issue-105225-named-args.rs:8:28
|
|
|
|
|
LL | println!("{x}", x = y, x = y);
|
|
| - ^ duplicate argument
|
|
| |
|
|
| previously here
|
|
|
|
error: aborting due to 2 previous errors
|
|
|