rust/tests/ui/macros/format-unused-lables.rs
2023-01-11 09:32:08 +00:00

19 lines
463 B
Rust

fn main() {
println!("Test", 123, 456, 789);
//~^ ERROR multiple unused formatting arguments
println!("Test2",
123, //~ ERROR multiple unused formatting arguments
456,
789
);
println!("Some stuff", UNUSED="args"); //~ ERROR named argument never used
println!("Some more $STUFF",
"woo!", //~ ERROR multiple unused formatting arguments
STUFF=
"things"
, UNUSED="args");
}