2019-10-12 14:07:13 +00:00
|
|
|
error: named argument never used
|
2021-11-01 16:51:54 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:8:51
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
|
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
|
|
|
|
| ------------------- ^ named argument never used
|
|
|
|
| |
|
|
|
|
| formatting specifier missing
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2022-02-16 00:38:04 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:2:18
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
|
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
|
2022-02-16 00:38:04 +00:00
|
|
|
| ^^^ not found in this scope
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `bar` in this scope
|
2022-02-16 00:38:04 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:2:27
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
|
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
|
2022-02-16 00:38:04 +00:00
|
|
|
| ^^^ not found in this scope
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2022-02-16 00:38:04 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:6:15
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
|
LL | format!("{foo}");
|
2022-02-16 00:38:04 +00:00
|
|
|
| ^^^ not found in this scope
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `valueb` in this scope
|
2022-02-16 00:38:04 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:8:24
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
|
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
|
2022-02-16 00:38:04 +00:00
|
|
|
| ^^^^^^ not found in this scope
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2022-02-16 00:38:04 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:14:10
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
2020-09-08 01:42:29 +00:00
|
|
|
LL | {foo}
|
2022-02-16 00:38:04 +00:00
|
|
|
| ^^^ not found in this scope
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `foo` in this scope
|
2022-02-16 00:38:04 +00:00
|
|
|
--> $DIR/format-args-capture-missing-variables.rs:19:14
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
|
LL | panic!("{foo} {bar}", bar=1);
|
2022-02-16 00:38:04 +00:00
|
|
|
| ^^^ not found in this scope
|
2019-10-12 14:07:13 +00:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|