rust/src/test/ui/macros/format-unused-lables.stderr

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-07-21 17:11:44 -05:00
error: multiple unused formatting arguments
--> $DIR/format-unused-lables.rs:12:22
2017-07-21 17:11:44 -05:00
|
12 | println!("Test", 123, 456, 789);
| ^^^ ^^^ ^^^
2017-07-21 17:11:44 -05:00
error: multiple unused formatting arguments
--> $DIR/format-unused-lables.rs:16:9
2017-07-21 17:11:44 -05: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
--> $DIR/format-unused-lables.rs:21:35
2017-07-21 17:11:44 -05: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
--> $DIR/format-unused-lables.rs:24:9
2017-07-21 17:11:44 -05: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