]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/format-args-capture-missing-variables.stderr
Add `format_args_capture` feature
[rust.git] / src / test / ui / fmt / format-args-capture-missing-variables.stderr
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
10   --> $DIR/format-args-capture-missing-variables.rs:4:13
11    |
12 LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
13    |             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
14
15 error[E0425]: cannot find value `bar` in this scope
16   --> $DIR/format-args-capture-missing-variables.rs:4:13
17    |
18 LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
19    |             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
20
21 error[E0425]: cannot find value `foo` in this scope
22   --> $DIR/format-args-capture-missing-variables.rs:8:13
23    |
24 LL |     format!("{foo}");
25    |             ^^^^^^^ not found in this scope
26
27 error[E0425]: cannot find value `valueb` in this scope
28   --> $DIR/format-args-capture-missing-variables.rs:10:13
29    |
30 LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
31    |             ^^^^^^^^^^^^^^^^^^^ not found in this scope
32
33 error[E0425]: cannot find value `foo` in this scope
34   --> $DIR/format-args-capture-missing-variables.rs:14:13
35    |
36 LL |       format!(r##"
37    |  _____________^
38 LL | |
39 LL | |         {foo}
40 LL | |
41 LL | |     "##);
42    | |_______^ not found in this scope
43
44 error[E0425]: cannot find value `foo` in this scope
45   --> $DIR/format-args-capture-missing-variables.rs:21:12
46    |
47 LL |     panic!("{foo} {bar}", bar=1);
48    |            ^^^^^^^^^^^^^ not found in this scope
49
50 error: aborting due to 7 previous errors
51
52 For more information about this error, try `rustc --explain E0425`.