rust/tests/ui/issue_2356.stderr

15 lines
402 B
Plaintext
Raw Normal View History

2018-01-30 20:52:45 +01:00
error: this loop could be written as a `for` loop
--> $DIR/issue_2356.rs:15:9
2018-01-30 20:52:45 +01:00
|
2018-12-27 16:57:55 +01:00
LL | while let Some(e) = it.next() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it`
2018-01-30 20:52:45 +01:00
|
2020-01-31 20:21:10 +01:00
note: the lint level is defined here
--> $DIR/issue_2356.rs:1:9
2018-01-30 20:52:45 +01:00
|
2018-12-27 16:57:55 +01:00
LL | #![deny(clippy::while_let_on_iterator)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-01-30 20:52:45 +01:00
error: aborting due to previous error