about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/writeln_empty_string.stderr
blob: 43e76309ba64cf56ca6b4fd239509e44819c54b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error: empty string literal in `writeln!`
  --> tests/ui/writeln_empty_string.rs:9:5
   |
LL |     writeln!(v, "");
   |     ^^^^^^^^^^----^
   |               |
   |               help: remove the empty string
   |
   = note: `-D clippy::writeln-empty-string` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::writeln_empty_string)]`

error: empty string literal in `writeln!`
  --> tests/ui/writeln_empty_string.rs:13:5
   |
LL |     writeln!(suggestion, "");
   |     ^^^^^^^^^^^^^^^^^^^----^
   |                        |
   |                        help: remove the empty string

error: aborting due to 2 previous errors