1 error: this `else` block is redundant
2 --> $DIR/needless_continue.rs:30:16
10 = help: consider dropping the `else` clause and merging the code that follows (in the loop) with the `if` block
11 if i % 2 == 0 && i % 3 == 0 {
13 println!("{}", i + 1);
15 println!("{}", i + 2);
18 println!("bar {} ", i);
19 // merged code follows:
24 if !(!(i == 2) || !(i == 5)) {
27 if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
35 = note: `-D clippy::needless-continue` implied by `-D warnings`
37 error: there is no need for an explicit `else` block for this `if` expression
38 --> $DIR/needless_continue.rs:45:9
40 LL | / if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
43 LL | | println!("Blabber");
44 LL | | println!("Jabber");
48 = help: consider dropping the `else` clause
49 if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
57 error: this `continue` expression is redundant
58 --> $DIR/needless_continue.rs:58:9
60 LL | continue; // should lint here
63 = help: consider dropping the `continue` expression
65 error: this `continue` expression is redundant
66 --> $DIR/needless_continue.rs:65:9
68 LL | continue; // should lint here
71 = help: consider dropping the `continue` expression
73 error: this `continue` expression is redundant
74 --> $DIR/needless_continue.rs:72:9
76 LL | continue // should lint here
79 = help: consider dropping the `continue` expression
81 error: this `continue` expression is redundant
82 --> $DIR/needless_continue.rs:80:9
84 LL | continue // should lint here
87 = help: consider dropping the `continue` expression
89 error: this `else` block is redundant
90 --> $DIR/needless_continue.rs:130:24
93 | ________________________^
94 LL | | continue 'inner; // should lint here
98 = help: consider dropping the `else` clause and merging the code that follows (in the loop) with the `if` block
101 // merged code follows:
105 continue; // should lint here
112 error: there is no need for an explicit `else` block for this `if` expression
113 --> $DIR/needless_continue.rs:136:17
115 LL | / if condition() {
116 LL | | continue; // should lint here
118 LL | | println!("bar-5");
120 | |_________________^
122 = help: consider dropping the `else` clause
124 continue; // should lint here
130 error: aborting due to 8 previous errors