fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB37 linesraw
1error: empty string literal in `println!`
2  --> $DIR/println_empty_string.rs:5:5
3   |
4LL |     println!("");
5   |     ^^^^^^^^^--^
6   |              |
7   |              help: remove the empty string
8   |
9   = note: `-D clippy::println-empty-string` implied by `-D warnings`
10   = help: to override `-D warnings` add `#[allow(clippy::println_empty_string)]`
11
12error: empty string literal in `println!`
13  --> $DIR/println_empty_string.rs:8:14
14   |
15LL |         _ => println!(""),
16   |              ^^^^^^^^^--^
17   |                       |
18   |                       help: remove the empty string
19
20error: empty string literal in `eprintln!`
21  --> $DIR/println_empty_string.rs:12:5
22   |
23LL |     eprintln!("");
24   |     ^^^^^^^^^^--^
25   |               |
26   |               help: remove the empty string
27
28error: empty string literal in `eprintln!`
29  --> $DIR/println_empty_string.rs:15:14
30   |
31LL |         _ => eprintln!(""),
32   |              ^^^^^^^^^^--^
33   |                        |
34   |                        help: remove the empty string
35
36error: aborting due to 4 previous errors
37