1 #![feature(tool_lints)]
3 #![allow(clippy::single_match, unused_assignments, unused_variables, clippy::while_immutable_condition)]
7 loop { // clippy::never_loop
48 while i == 0 { // never loops
92 while let Some(y) = x { // never loops
98 for x in 0..10 { // never loops
106 fn test11<F: FnMut() -> i32>(mut f: F) {
115 pub fn test12(a: bool, b: bool) {
131 loop { // infinite loop
144 'outer: while a { // never loops
155 // Issue #1991: the outter loop should not warn.