2017-07-21 17:11:44 -05:00
|
|
|
fn main() {
|
|
|
|
println!("Test", 123, 456, 789);
|
2018-01-15 23:38:12 -06:00
|
|
|
//~^ ERROR multiple unused formatting arguments
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
println!("Test2",
|
2018-01-15 23:38:12 -06:00
|
|
|
123, //~ ERROR multiple unused formatting arguments
|
2017-07-21 17:11:44 -05:00
|
|
|
456,
|
|
|
|
789
|
|
|
|
);
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
println!("Some stuff", UNUSED="args"); //~ ERROR named argument never used
|
2017-07-21 17:11:44 -05:00
|
|
|
|
|
|
|
println!("Some more $STUFF",
|
2018-01-15 23:38:12 -06:00
|
|
|
"woo!", //~ ERROR multiple unused formatting arguments
|
2017-07-21 17:11:44 -05:00
|
|
|
STUFF=
|
|
|
|
"things"
|
|
|
|
, UNUSED="args");
|
|
|
|
}
|