1 error: this loop could be written as a `while let` loop
2 --> $DIR/while_let_loop.rs:5:5
5 LL | | if let Some(_x) = y {
11 | |_____^ help: try: `while let Some(_x) = y { .. }`
13 = note: `-D clippy::while-let-loop` implied by `-D warnings`
15 error: this loop could be written as a `while let` loop
16 --> $DIR/while_let_loop.rs:22:5
20 LL | | Some(_x) => true,
24 | |_____^ help: try: `while let Some(_x) = y { .. }`
26 error: this loop could be written as a `while let` loop
27 --> $DIR/while_let_loop.rs:29:5
30 LL | | let x = match y {
34 LL | | let _str = "foo";
36 | |_____^ help: try: `while let Some(x) = y { .. }`
38 error: this loop could be written as a `while let` loop
39 --> $DIR/while_let_loop.rs:38:5
42 LL | | let x = match y {
48 | |_____^ help: try: `while let Some(x) = y { .. }`
50 error: this loop could be written as a `while let` loop
51 --> $DIR/while_let_loop.rs:68:5
54 LL | | let (e, l) = match "".split_whitespace().next() {
55 LL | | Some(word) => (word.is_empty(), word.len()),
58 LL | | let _ = (e, l);
60 | |_____^ help: try: `while let Some(word) = "".split_whitespace().next() { .. }`
62 error: aborting due to 5 previous errors