rust-clippy/tests/ui/writeln_empty_string.stderr

21 lines
570 B
Text
Raw Normal View History

2022-08-30 12:20:49 +00:00
error: empty string literal in `writeln!`
2023-07-27 11:40:22 +00:00
--> $DIR/writeln_empty_string.rs:9:5
|
LL | writeln!(v, "");
2022-08-30 12:20:49 +00:00
| ^^^^^^^^^^----^
| |
| help: remove the empty string
|
= note: `-D clippy::writeln-empty-string` implied by `-D warnings`
2022-08-30 12:20:49 +00:00
error: empty string literal in `writeln!`
2023-07-27 11:40:22 +00:00
--> $DIR/writeln_empty_string.rs:12:5
|
LL | writeln!(suggestion, "");
2022-08-30 12:20:49 +00:00
| ^^^^^^^^^^^^^^^^^^^----^
| |
| help: remove the empty string
error: aborting due to 2 previous errors