rust-clippy/tests/ui/issue_2356.stderr

15 lines
403 B
Text
Raw Normal View History

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