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

48 lines
1.8 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);
| -----------------^^^--^^^--^^^-- multiple unused arguments in this statement
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
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
|
15 | / println!("Test2",
16 | | 123, //~ ERROR multiple unused formatting arguments
| | ^^^
17 | | 456,
| | ^^^
18 | | 789
| | ^^^
19 | | );
| |______- multiple unused arguments in this statement
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
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
|
23 | / println!("Some more $STUFF",
24 | | "woo!", //~ ERROR multiple unused formatting arguments
| | ^^^^^^
25 | | STUFF=
26 | | "things"
| | ^^^^^^^^
27 | | , UNUSED="args");
| |_______________________^^^^^^_- multiple unused arguments in this statement
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`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
2017-07-21 17:11:44 -05:00
error: aborting due to 4 previous errors