1 error: this `else` block is redundant
2 --> $DIR/needless_continue.rs:29:16
10 = note: `-D clippy::needless-continue` implied by `-D warnings`
11 = help: consider dropping the `else` clause and merging the code that follows (in the loop) with the `if` block
12 if i % 2 == 0 && i % 3 == 0 {
14 println!("{}", i + 1);
16 println!("{}", i + 2);
19 println!("bar {} ", i);
20 // merged code follows:
25 if !(!(i == 2) || !(i == 5)) {
28 if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
37 error: there is no need for an explicit `else` block for this `if` expression
38 --> $DIR/needless_continue.rs:44: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:57: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:64: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:71: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:79: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:129: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:135: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