@@ -64,26 +64,23 @@ error: there is no argument named `foo`
6464LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
6565 | ^^^^^
6666 |
67- = note: did you intend to capture a variable `foo` from the surrounding scope?
68- = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
67+ = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
6968
7069error: there is no argument named `bar`
7170 --> $DIR/ifmt-bad-arg.rs:27:26
7271 |
7372LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
7473 | ^^^^^
7574 |
76- = note: did you intend to capture a variable `bar` from the surrounding scope?
77- = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
75+ = help: if you intended to capture `bar` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
7876
7977error: there is no argument named `foo`
8078 --> $DIR/ifmt-bad-arg.rs:31:14
8179 |
8280LL | format!("{foo}");
8381 | ^^^^^
8482 |
85- = note: did you intend to capture a variable `foo` from the surrounding scope?
86- = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
83+ = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
8784
8885error: multiple unused formatting arguments
8986 --> $DIR/ifmt-bad-arg.rs:32:17
@@ -165,8 +162,7 @@ error: there is no argument named `valueb`
165162LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
166163 | ^^^^^^^^
167164 |
168- = note: did you intend to capture a variable `valueb` from the surrounding scope?
169- = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
165+ = help: if you intended to capture `valueb` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
170166
171167error: named argument never used
172168 --> $DIR/ifmt-bad-arg.rs:45:51
@@ -218,8 +214,7 @@ error: there is no argument named `foo`
218214LL | {foo}
219215 | ^^^^^
220216 |
221- = note: did you intend to capture a variable `foo` from the surrounding scope?
222- = help: add `#![feature(format_args_capture)]` to the crate attributes to enable
217+ = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
223218
224219error: invalid format string: expected `'}'`, found `'t'`
225220 --> $DIR/ifmt-bad-arg.rs:75:1
0 commit comments