summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/println_empty_string.stderr
blob: c89e64f665a75cfe82ae6a300e2cf8db95563b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
error: empty string literal in `println!`
  --> $DIR/println_empty_string.rs:5:5
   |
LL |     println!("");
   |     ^^^^^^^^^--^
   |              |
   |              help: remove the empty string
   |
   = note: `-D clippy::println-empty-string` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::println_empty_string)]`

error: empty string literal in `println!`
  --> $DIR/println_empty_string.rs:8:14
   |
LL |         _ => println!(""),
   |              ^^^^^^^^^--^
   |                       |
   |                       help: remove the empty string

error: empty string literal in `eprintln!`
  --> $DIR/println_empty_string.rs:12:5
   |
LL |     eprintln!("");
   |     ^^^^^^^^^^--^
   |               |
   |               help: remove the empty string

error: empty string literal in `eprintln!`
  --> $DIR/println_empty_string.rs:15:14
   |
LL |         _ => eprintln!(""),
   |              ^^^^^^^^^^--^
   |                        |
   |                        help: remove the empty string

error: aborting due to 4 previous errors