@@ -7,45 +7,40 @@ LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
7
7
| formatting specifier missing
8
8
9
9
error[E0425]: cannot find value `foo` in this scope
10
- --> $DIR/format-args-capture-missing-variables.rs:4:13
10
+ --> $DIR/format-args-capture-missing-variables.rs:4:17
11
11
|
12
12
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
13
- | ^^^^^^^^^^^^^^^^^ ^^^^^ not found in this scope
13
+ | ^^^^^ not found in this scope
14
14
15
15
error[E0425]: cannot find value `bar` in this scope
16
- --> $DIR/format-args-capture-missing-variables.rs:4:13
16
+ --> $DIR/format-args-capture-missing-variables.rs:4:26
17
17
|
18
18
LL | format!("{} {foo} {} {bar} {}", 1, 2, 3);
19
- | ^^^^^^^^^^^^^^^^^ ^^^^^ not found in this scope
19
+ | ^^^^^ not found in this scope
20
20
21
21
error[E0425]: cannot find value `foo` in this scope
22
- --> $DIR/format-args-capture-missing-variables.rs:8:13
22
+ --> $DIR/format-args-capture-missing-variables.rs:8:14
23
23
|
24
24
LL | format!("{foo}");
25
- | ^^ ^^^^^ not found in this scope
25
+ | ^^^^^ not found in this scope
26
26
27
27
error[E0425]: cannot find value `valueb` in this scope
28
- --> $DIR/format-args-capture-missing-variables.rs:10:13
28
+ --> $DIR/format-args-capture-missing-variables.rs:10:23
29
29
|
30
30
LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
31
- | ^^^^^^^^^^^ ^^^^^^^^ not found in this scope
31
+ | ^^^^^^^^ not found in this scope
32
32
33
33
error[E0425]: cannot find value `foo` in this scope
34
- --> $DIR/format-args-capture-missing-variables.rs:14:13
34
+ --> $DIR/format-args-capture-missing-variables.rs:16:9
35
35
|
36
- LL | format!(r##"
37
- | _____________^
38
- LL | |
39
- LL | | {foo}
40
- LL | |
41
- LL | | "##);
42
- | |_______^ not found in this scope
36
+ LL | {foo}
37
+ | ^^^^^ not found in this scope
43
38
44
39
error[E0425]: cannot find value `foo` in this scope
45
- --> $DIR/format-args-capture-missing-variables.rs:21:12
40
+ --> $DIR/format-args-capture-missing-variables.rs:21:13
46
41
|
47
42
LL | panic!("{foo} {bar}", bar=1);
48
- | ^^^^^^^^ ^^^^^ not found in this scope
43
+ | ^^^^^ not found in this scope
49
44
50
45
error: aborting due to 7 previous errors
51
46
0 commit comments