rust/tests/ui/format.stderr
Baelyk 48027105dc Add suggestion to useless_format
Resolves #2505

Suggests that you use `"foo".to_string()` instead of `format!("foo")`.
2018-03-19 09:27:15 -05:00

11 lines
262 B
Plaintext

error: useless use of `format!`
--> $DIR/format.rs:6:5
|
6 | format!("foo");
| ^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
|
= note: `-D useless-format` implied by `-D warnings`
error: aborting due to previous error