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-15 23:38:12 -06:00
|
|
|
| ^^^ ^^^ ^^^
|
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-15 23:38:12 -06:00
|
|
|
16 | 123, //~ ERROR multiple unused formatting arguments
|
|
|
|
| ^^^
|
|
|
|
17 | 456,
|
|
|
|
| ^^^
|
|
|
|
18 | 789
|
|
|
|
| ^^^
|
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-15 23:38:12 -06:00
|
|
|
24 | "woo!", //~ ERROR multiple unused formatting arguments
|
|
|
|
| ^^^^^^
|
|
|
|
25 | STUFF=
|
|
|
|
26 | "things"
|
|
|
|
| ^^^^^^^^
|
|
|
|
27 | , UNUSED="args");
|
|
|
|
| ^^^^^^
|
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`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|