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 {
55 fn condition() -> bool {
58 fn update_condition() {}
60 // only the outer loop has a label
69 continue 'outer; // should not lint here
75 continue 'outer; // should not lint here
84 // both loops have labels
88 'inner: while condition() {
93 continue 'outer; // should not lint here
101 continue 'inner; // should lint here
107 continue; // should lint here