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

47 lines
1.4 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
|
2018-02-22 18:42:32 -06:00
LL | println!("Test", 123, 456, 789);
| ------ ^^^ ^^^ ^^^
| |
| multiple missing formatting specifiers
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
|
LL | println!("Test2",
| ------- multiple missing formatting specifiers
LL | 123, //~ ERROR multiple unused formatting arguments
| ^^^
LL | 456,
| ^^^
LL | 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
|
2018-02-22 18:42:32 -06:00
LL | println!("Some stuff", UNUSED="args"); //~ ERROR named argument never used
| ------------ ^^^^^^
| |
| formatting specifier missing
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
|
LL | println!("Some more $STUFF",
| ------------------ multiple missing formatting specifiers
LL | "woo!", //~ ERROR multiple unused formatting arguments
| ^^^^^^
LL | STUFF=
LL | "things"
| ^^^^^^^^
LL | , 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