1 #![warn(clippy::needless_continue)]
20 if i % 2 == 0 && i % 3 == 0 {
22 println!("{}", i + 1);
24 println!("{}", i + 2);
27 println!("bar {} ", i);
37 // some comments that also should ideally be included in the
38 // output of the lint suggestion if possible.
39 if !(!(i == 2) || !(i == 5)) {
43 if (zero!(i % 2) || nonzero!(i % 5)) && i % 3 != 0 {
58 fn condition() -> bool {
61 fn update_condition() {}
63 // only the outer loop has a label
72 continue 'outer; // should not lint here
78 continue 'outer; // should not lint here
87 // both loops have labels
91 'inner: while condition() {
96 continue 'outer; // should not lint here
104 continue 'inner; // should lint here
110 continue; // should lint here