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