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
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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-02-22 18:42:32 -06:00
|
|
|
LL | / println!("Test2",
|
|
|
|
LL | | 123, //~ ERROR multiple unused formatting arguments
|
2018-01-16 20:11:35 -06:00
|
|
|
| | ^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | 456,
|
2018-01-16 20:11:35 -06:00
|
|
|
| | ^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | 789
|
2018-01-16 20:11:35 -06:00
|
|
|
| | ^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | );
|
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: 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-02-22 18:42:32 -06:00
|
|
|
LL | 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-02-22 18:42:32 -06:00
|
|
|
LL | / println!("Some more $STUFF",
|
|
|
|
LL | | "woo!", //~ ERROR multiple unused formatting arguments
|
2018-01-16 20:11:35 -06:00
|
|
|
| | ^^^^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | STUFF=
|
|
|
|
LL | | "things"
|
2018-01-16 20:11:35 -06:00
|
|
|
| | ^^^^^^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | , UNUSED="args");
|
2018-01-16 20:11:35 -06:00
|
|
|
| |_______________________^^^^^^_- 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
|
|
|
|
|