@@ -2,17 +2,24 @@ error: multiple unused formatting arguments
2
2
--> $DIR/format-unused-lables.rs:12:22
3
3
|
4
4
12 | println!("Test", 123, 456, 789);
5
- | ^^^ ^^^ ^^^
5
+ | -----------------^^^--^^^--^^^-- multiple unused arguments in this statement
6
+ |
7
+ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
6
8
7
9
error: multiple unused formatting arguments
8
10
--> $DIR/format-unused-lables.rs:16:9
9
11
|
10
- 16 | 123, //~ ERROR multiple unused formatting arguments
11
- | ^^^
12
- 17 | 456,
13
- | ^^^
14
- 18 | 789
15
- | ^^^
12
+ 15 | / println!("Test2",
13
+ 16 | | 123, //~ ERROR multiple unused formatting arguments
14
+ | | ^^^
15
+ 17 | | 456,
16
+ | | ^^^
17
+ 18 | | 789
18
+ | | ^^^
19
+ 19 | | );
20
+ | |______- multiple unused arguments in this statement
21
+ |
22
+ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
16
23
17
24
error: named argument never used
18
25
--> $DIR/format-unused-lables.rs:21:35
@@ -23,16 +30,18 @@ error: named argument never used
23
30
error: multiple unused formatting arguments
24
31
--> $DIR/format-unused-lables.rs:24:9
25
32
|
26
- 24 | "woo!", //~ ERROR multiple unused formatting arguments
27
- | ^^^^^^
28
- 25 | STUFF=
29
- 26 | "things"
30
- | ^^^^^^^^
31
- 27 | , UNUSED="args");
32
- | ^^^^^^
33
+ 23 | / println!("Some more $STUFF",
34
+ 24 | | "woo!", //~ ERROR multiple unused formatting arguments
35
+ | | ^^^^^^
36
+ 25 | | STUFF=
37
+ 26 | | "things"
38
+ | | ^^^^^^^^
39
+ 27 | | , UNUSED="args");
40
+ | |_______________________^^^^^^_- multiple unused arguments in this statement
33
41
|
34
42
= help: `$STUFF` should be written as `{STUFF}`
35
43
= note: shell formatting not supported; see the documentation for `std::fmt`
44
+ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
36
45
37
46
error: aborting due to 4 previous errors
38
47
0 commit comments