We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88aa04d commit 01a4a1dCopy full SHA for 01a4a1d
clippy_tests/examples/while_loop.rs
@@ -166,15 +166,15 @@ fn refutable() {
166
for &Option::None in b.next() {}
167
// */
168
169
- let x = a.iter();
+ let mut y = a.iter();
170
loop { // x is reused, so don't lint here
171
- while let Some(v) = x.next() {
+ while let Some(v) = y.next() {
172
}
173
174
175
- let y = a.iter();
176
for _ in 0..2 {
177
178
179
180
0 commit comments