rust/tests/ui/issue_2356.stderr
2018-12-28 12:41:12 +01:00

15 lines
404 B
Plaintext

error: this loop could be written as a `for` loop
--> $DIR/issue_2356.rs:24:29
|
LL | while let Some(e) = it.next() {
| ^^^^^^^^^ help: try: `for e in it { .. }`
|
note: lint level defined here
--> $DIR/issue_2356.rs:10:9
|
LL | #![deny(clippy::while_let_on_iterator)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error