2017-07-21 17:11:44 -05:00
|
|
|
error: multiple unused formatting arguments
|
2018-01-15 23:38:12 -06:00
|
|
|
--> $DIR/format-unused-lables.rs:12:22
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
|
12 | println!("Test", 123, 456, 789);
|
2018-01-16 20:11:35 -06:00
|
|
|
| -----------------^^^--^^^--^^^-- multiple unused arguments in this statement
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
error: multiple unused formatting arguments
|
2018-01-15 23:38:12 -06:00
|
|
|
--> $DIR/format-unused-lables.rs:16:9
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
2018-01-16 20:11:35 -06:00
|
|
|
15 | / println!("Test2",
|
|
|
|
16 | | 123, //~ ERROR multiple unused formatting arguments
|
|
|
|
| | ^^^
|
|
|
|
17 | | 456,
|
|
|
|
| | ^^^
|
|
|
|
18 | | 789
|
|
|
|
| | ^^^
|
|
|
|
19 | | );
|
|
|
|
| |______- multiple unused arguments in this statement
|
|
|
|
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
error: named argument never used
|
2018-01-15 23:38:12 -06:00
|
|
|
--> $DIR/format-unused-lables.rs:21:35
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
2018-01-15 23:38:12 -06:00
|
|
|
21 | println!("Some stuff", UNUSED="args"); //~ ERROR named argument never used
|
2017-07-21 17:11:44 -05:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: multiple unused formatting arguments
|
2018-01-15 23:38:12 -06:00
|
|
|
--> $DIR/format-unused-lables.rs:24:9
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
2018-01-16 20:11:35 -06:00
|
|
|
23 | / println!("Some more $STUFF",
|
|
|
|
24 | | "woo!", //~ ERROR multiple unused formatting arguments
|
|
|
|
| | ^^^^^^
|
|
|
|
25 | | STUFF=
|
|
|
|
26 | | "things"
|
|
|
|
| | ^^^^^^^^
|
|
|
|
27 | | , UNUSED="args");
|
|
|
|
| |_______________________^^^^^^_- multiple unused arguments in this statement
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
|
= help: `$STUFF` should be written as `{STUFF}`
|
|
|
|
= note: shell formatting not supported; see the documentation for `std::fmt`
|
2018-01-16 20:11:35 -06:00
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|