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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
463 B
Rust
Raw Normal View History

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