2017-02-07 21:05:30 +01:00
|
|
|
error: this loop could be written as a `for` loop
|
2019-05-09 05:54:05 +02:00
|
|
|
--> $DIR/while_let_on_iterator.rs:6:33
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | while let Option::Some(x) = iter.next() {
|
2018-01-29 05:18:11 +01:00
|
|
|
| ^^^^^^^^^^^ help: try: `for x in iter { .. }`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::while-let-on-iterator` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this loop could be written as a `for` loop
|
2019-05-09 05:54:05 +02:00
|
|
|
--> $DIR/while_let_on_iterator.rs:11:25
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | while let Some(x) = iter.next() {
|
2018-01-29 05:18:11 +01:00
|
|
|
| ^^^^^^^^^^^ help: try: `for x in iter { .. }`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: this loop could be written as a `for` loop
|
2019-05-09 05:54:05 +02:00
|
|
|
--> $DIR/while_let_on_iterator.rs:16:25
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | while let Some(_) = iter.next() {}
|
2018-01-29 05:18:11 +01:00
|
|
|
| ^^^^^^^^^^^ help: try: `for _ in iter { .. }`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-08-01 00:58:26 +02:00
|
|
|
error: this loop could be written as a `for` loop
|
2019-05-09 05:54:05 +02:00
|
|
|
--> $DIR/while_let_on_iterator.rs:95:29
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | while let Some(v) = y.next() {
|
|
|
|
| ^^^^^^^^ help: try: `for v in y { .. }`
|
2017-08-01 00:58:26 +02:00
|
|
|
|
2018-07-28 11:51:46 +02:00
|
|
|
error: this loop could be written as a `for` loop
|
2019-05-09 05:54:05 +02:00
|
|
|
--> $DIR/while_let_on_iterator.rs:120:26
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | while let Some(..) = values.iter().next() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in values.iter() { .. }`
|
2018-07-28 11:51:46 +02:00
|
|
|
|
2019-05-08 09:19:08 +02:00
|
|
|
error: aborting due to 5 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|