|
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
| ^^^^^
+ |
+ = note: did you intend to capture a variable `foo` from the surrounding scope?
+ = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
error: there is no argument named `bar`
--> $DIR/ifmt-bad-arg.rs:27:26
|
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
| ^^^^^
+ |
+ = note: did you intend to capture a variable `bar` from the surrounding scope?
+ = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
error: there is no argument named `foo`
--> $DIR/ifmt-bad-arg.rs:31:14
|
LL | format!("{foo}");
| ^^^^^
+ |
+ = note: did you intend to capture a variable `foo` from the surrounding scope?
+ = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
error: multiple unused formatting arguments
--> $DIR/ifmt-bad-arg.rs:32:17
|
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
| ^^^^^^^^
+ |
+ = note: did you intend to capture a variable `valueb` from the surrounding scope?
+ = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
error: named argument never used
--> $DIR/ifmt-bad-arg.rs:45:51
|
LL | {foo}
| ^^^^^
+ |
+ = note: did you intend to capture a variable `foo` from the surrounding scope?
+ = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
error: invalid format string: expected `'}'`, found `'t'`
--> $DIR/ifmt-bad-arg.rs:75:1