2019-10-12 09:07:13 -05:00
|
|
|
error: named argument never used
|
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:10:51
|
|
|
|
|
|
|
|
|
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
|
|
|
|
| ------------------- ^ named argument never used
|
|
|
|
| |
|
|
|
|
| formatting specifier missing
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2020-09-07 20:42:29 -05:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:4:17
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
|
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
|
2020-09-07 20:42:29 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `bar` in this scope
|
2020-09-07 20:42:29 -05:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:4:26
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
|
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
|
2020-09-07 20:42:29 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2020-09-07 20:42:29 -05:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:8:14
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
|
LL | format!("{foo}");
|
2020-09-07 20:42:29 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `valueb` in this scope
|
2020-09-07 20:42:29 -05:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:10:23
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
|
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
|
2020-09-07 20:42:29 -05:00
|
|
|
| ^^^^^^^^ not found in this scope
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2020-09-07 20:42:29 -05:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:16:9
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
2020-09-07 20:42:29 -05:00
|
|
|
LL | {foo}
|
|
|
|
| ^^^^^ not found in this scope
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2020-09-07 20:42:29 -05:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:21:13
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
|
LL | panic!("{foo} {bar}", bar=1);
|
2020-09-07 20:42:29 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-12 09:07:13 -05:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|