]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/copy_iterator.stderr
iterate List by value
[rust.git] / tests / ui / copy_iterator.stderr
index f520156b01e66b206bafac703e3302e3740e30ab..f8ce6af7961a6148bb94eaae5b9815cd8f1617dd 100644 (file)
@@ -1,16 +1,16 @@
 error: you are implementing `Iterator` on a `Copy` type
   --> $DIR/copy_iterator.rs:6:1
    |
- | / impl Iterator for Countdown {
- | |     type Item = u8;
- | |
- | |     fn next(&mut self) -> Option<u8> {
+LL | / impl Iterator for Countdown {
+LL | |     type Item = u8;
+LL | |
+LL | |     fn next(&mut self) -> Option<u8> {
 ...  |
-14 | |     }
-15 | | }
+LL | |     }
+LL | | }
    | |_^
    |
-   = note: `-D copy-iterator` implied by `-D warnings`
+   = note: `-D clippy::copy-iterator` implied by `-D warnings`
    = note: consider implementing `IntoIterator` instead
 
 error: aborting due to previous error