]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/redundant_else.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / redundant_else.stderr
1 error: redundant else block
2 --> $DIR/redundant_else.rs:10:16
3 |
4 LL | } else {
5 | ________________^
6 LL | |
7 LL | | println!("yet don't pull down your hedge.");
8 LL | | }
9 | |_________^
10 |
11 = help: remove the `else` block and move the contents out
12 = note: `-D clippy::redundant-else` implied by `-D warnings`
13 = help: to override `-D warnings` add `#[allow(clippy::redundant_else)]`
14
15 error: redundant else block
16 --> $DIR/redundant_else.rs:18:16
17 |
18 LL | } else {
19 | ________________^
20 LL | |
21 LL | | println!("shall rise up with fleas.");
22 LL | | }
23 | |_________^
24 |
25 = help: remove the `else` block and move the contents out
26
27 error: redundant else block
28 --> $DIR/redundant_else.rs:28:16
29 |
30 LL | } else {
31 | ________________^
32 LL | |
33 LL | | println!("You may delay, but time will not.");
34 LL | | }
35 | |_________^
36 |
37 = help: remove the `else` block and move the contents out
38
39 error: redundant else block
40 --> $DIR/redundant_else.rs:38:12
41 |
42 LL | } else {
43 | ____________^
44 LL | |
45 LL | | println!("A fat kitchen makes a lean will.");
46 LL | | }
47 | |_____^
48 |
49 = help: remove the `else` block and move the contents out
50
51 error: redundant else block
52 --> $DIR/redundant_else.rs:46:16
53 |
54 LL | } else {
55 | ________________^
56 LL | |
57 LL | | 1
58 LL | | }
59 | |_________^
60 |
61 = help: remove the `else` block and move the contents out
62
63 error: redundant else block
64 --> $DIR/redundant_else.rs:57:16
65 |
66 LL | } else {
67 | ________________^
68 LL | |
69 LL | | 2
70 LL | | }
71 | |_________^
72 |
73 = help: remove the `else` block and move the contents out
74
75 error: redundant else block
76 --> $DIR/redundant_else.rs:67:16
77 |
78 LL | } else {
79 | ________________^
80 LL | |
81 LL | | 1
82 LL | | }
83 | |_________^
84 |
85 = help: remove the `else` block and move the contents out
86
87 error: aborting due to 7 previous errors
88