]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | error: named argument never used |
2 | --> $DIR/format-args-capture-missing-variables.rs:10:51 | |
3 | | | |
4 | LL | format!("{valuea} {valueb}", valuea=5, valuec=7); | |
5 | | ------------------- ^ named argument never used | |
6 | | | | |
7 | | formatting specifier missing | |
8 | ||
9 | error[E0425]: cannot find value `foo` in this scope | |
1b1a35ee | 10 | --> $DIR/format-args-capture-missing-variables.rs:4:17 |
f035d41b XL |
11 | | |
12 | LL | format!("{} {foo} {} {bar} {}", 1, 2, 3); | |
1b1a35ee | 13 | | ^^^^^ not found in this scope |
f035d41b XL |
14 | |
15 | error[E0425]: cannot find value `bar` in this scope | |
1b1a35ee | 16 | --> $DIR/format-args-capture-missing-variables.rs:4:26 |
f035d41b XL |
17 | | |
18 | LL | format!("{} {foo} {} {bar} {}", 1, 2, 3); | |
1b1a35ee | 19 | | ^^^^^ not found in this scope |
f035d41b XL |
20 | |
21 | error[E0425]: cannot find value `foo` in this scope | |
1b1a35ee | 22 | --> $DIR/format-args-capture-missing-variables.rs:8:14 |
f035d41b XL |
23 | | |
24 | LL | format!("{foo}"); | |
1b1a35ee | 25 | | ^^^^^ not found in this scope |
f035d41b XL |
26 | |
27 | error[E0425]: cannot find value `valueb` in this scope | |
1b1a35ee | 28 | --> $DIR/format-args-capture-missing-variables.rs:10:23 |
f035d41b XL |
29 | | |
30 | LL | format!("{valuea} {valueb}", valuea=5, valuec=7); | |
1b1a35ee | 31 | | ^^^^^^^^ not found in this scope |
f035d41b XL |
32 | |
33 | error[E0425]: cannot find value `foo` in this scope | |
1b1a35ee | 34 | --> $DIR/format-args-capture-missing-variables.rs:16:9 |
f035d41b | 35 | | |
1b1a35ee XL |
36 | LL | {foo} |
37 | | ^^^^^ not found in this scope | |
f035d41b XL |
38 | |
39 | error[E0425]: cannot find value `foo` in this scope | |
1b1a35ee | 40 | --> $DIR/format-args-capture-missing-variables.rs:21:13 |
f035d41b XL |
41 | | |
42 | LL | panic!("{foo} {bar}", bar=1); | |
1b1a35ee | 43 | | ^^^^^ not found in this scope |
f035d41b XL |
44 | |
45 | error: aborting due to 7 previous errors | |
46 | ||
47 | For more information about this error, try `rustc --explain E0425`. |