]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/issue_2356.stderr
Auto merge of #6336 - giraffate:sync-from-rust, r=flip1995
[rust.git] / tests / ui / issue_2356.stderr
index 3759990031248f7f6d2577702fc2851de4a53e2a..51b872e21c08582afd3e9bea7943c2d64d0af4b0 100644 (file)
@@ -1,11 +1,11 @@
 error: this loop could be written as a `for` loop
-  --> $DIR/issue_2356.rs:24:29
+  --> $DIR/issue_2356.rs:15:9
    |
 LL |         while let Some(e) = it.next() {
-   |                             ^^^^^^^^^ help: try: `for e in it { .. }`
+   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it`
    |
-note: lint level defined here
-  --> $DIR/issue_2356.rs:10:9
+note: the lint level is defined here
+  --> $DIR/issue_2356.rs:1:9
    |
 LL | #![deny(clippy::while_let_on_iterator)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^