@@ -64,26 +64,23 @@ error: there is no argument named `foo`
64
64
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
65
65
| ^^^^^
66
66
|
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
69
68
70
69
error: there is no argument named `bar`
71
70
--> $DIR/ifmt-bad-arg.rs:27:26
72
71
|
73
72
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
74
73
| ^^^^^
75
74
|
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
78
76
79
77
error: there is no argument named `foo`
80
78
--> $DIR/ifmt-bad-arg.rs:31:14
81
79
|
82
80
LL | format!("{foo}");
83
81
| ^^^^^
84
82
|
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
87
84
88
85
error: multiple unused formatting arguments
89
86
--> $DIR/ifmt-bad-arg.rs:32:17
@@ -165,8 +162,7 @@ error: there is no argument named `valueb`
165
162
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
166
163
| ^^^^^^^^
167
164
|
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
170
166
171
167
error: named argument never used
172
168
--> $DIR/ifmt-bad-arg.rs:45:51
@@ -218,8 +214,7 @@ error: there is no argument named `foo`
218
214
LL | {foo}
219
215
| ^^^^^
220
216
|
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
223
218
224
219
error: invalid format string: expected `'}'`, found `'t'`
225
220
--> $DIR/ifmt-bad-arg.rs:75:1
0 commit comments