rust/tests/ui/issue_2356.stderr

15 lines
404 B
Plaintext
Raw Normal View History

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