2017-02-07 14:05:30 -06:00
|
|
|
error: useless use of `format!`
|
|
|
|
--> $DIR/format.rs:6:5
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
6 | format!("foo");
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/format.rs:3:9
|
|
|
|
|
|
|
|
|
3 | #![deny(useless_format)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: useless use of `format!`
|
|
|
|
--> $DIR/format.rs:8:5
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
8 | format!("{}", "foo");
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: useless use of `format!`
|
|
|
|
--> $DIR/format.rs:15:5
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
15 | format!("{}", arg);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|