rust/tests/ui/macros/format-unused-lables.rs

19 lines
463 B
Rust
Raw Normal View History

2017-07-21 17:11:44 -05:00
fn main() {
println!("Test", 123, 456, 789);
//~^ ERROR multiple unused formatting arguments
2017-07-21 17:11:44 -05:00
println!("Test2",
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",
"woo!", //~ ERROR multiple unused formatting arguments
2017-07-21 17:11:44 -05:00
STUFF=
"things"
, UNUSED="args");
}