summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/issue_2356.stderr
blob: 4e3ff7522e0bb7c346bcf4b2086792c0dfce4c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: this loop could be written as a `for` loop
  --> $DIR/issue_2356.rs:17:9
   |
LL |         while let Some(e) = it.next() {
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it`
   |
note: the lint level is defined here
  --> $DIR/issue_2356.rs:2:9
   |
LL | #![deny(clippy::while_let_on_iterator)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error