rust-clippy/tests/ui/issue_2356.stderr
2018-10-06 09:43:08 -07:00

14 lines
404 B
Text

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