@@ -2,17 +2,24 @@ error: multiple unused formatting arguments
22 --> $DIR/format-unused-lables.rs:12:22
33 |
4412 | 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)
68
79error: multiple unused formatting arguments
810 --> $DIR/format-unused-lables.rs:16:9
911 |
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)
1623
1724error: named argument never used
1825 --> $DIR/format-unused-lables.rs:21:35
@@ -23,16 +30,18 @@ error: named argument never used
2330error: multiple unused formatting arguments
2431 --> $DIR/format-unused-lables.rs:24:9
2532 |
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
3341 |
3442 = help: `$STUFF` should be written as `{STUFF}`
3543 = 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)
3645
3746error: aborting due to 4 previous errors
3847
0 commit comments