]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/copy_iterator.stderr
iterate List by value
[rust.git] / tests / ui / copy_iterator.stderr
index 4620958f47b1fe631225cfa955873561cda9e2b1..f8ce6af7961a6148bb94eaae5b9815cd8f1617dd 100644 (file)
@@ -1,13 +1,13 @@
 error: you are implementing `Iterator` on a `Copy` type
-  --> $DIR/copy_iterator.rs:18:1
+  --> $DIR/copy_iterator.rs:6:1
    |
-18 | / impl Iterator for Countdown {
-19 | |     type Item = u8;
-20 | |
-21 | |     fn next(&mut self) -> Option<u8> {
+LL | / impl Iterator for Countdown {
+LL | |     type Item = u8;
+LL | |
+LL | |     fn next(&mut self) -> Option<u8> {
 ...  |
-26 | |     }
-27 | | }
+LL | |     }
+LL | | }
    | |_^
    |
    = note: `-D clippy::copy-iterator` implied by `-D warnings`