summary refs log tree commit diff
path: root/src/test/ui/fmt/format-args-capture-missing-variables.stderr
blob: c3d740eef9d3cd1684e54e35d55104ba2c5aca94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
  --> $DIR/format-args-capture-missing-variables.rs:4:13
   |
LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
   |             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `bar` in this scope
  --> $DIR/format-args-capture-missing-variables.rs:4:13
   |
LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
   |             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `foo` in this scope
  --> $DIR/format-args-capture-missing-variables.rs:8:13
   |
LL |     format!("{foo}");
   |             ^^^^^^^ not found in this scope

error[E0425]: cannot find value `valueb` in this scope
  --> $DIR/format-args-capture-missing-variables.rs:10:13
   |
LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
   |             ^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `foo` in this scope
  --> $DIR/format-args-capture-missing-variables.rs:14:13
   |
LL |       format!(r##"
   |  _____________^
LL | |
LL | |         {foo}
LL | |
LL | |     "##);
   | |_______^ not found in this scope

error[E0425]: cannot find value `foo` in this scope
  --> $DIR/format-args-capture-missing-variables.rs:21:12
   |
LL |     panic!("{foo} {bar}", bar=1);
   |            ^^^^^^^^^^^^^ not found in this scope

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0425`.