error: you are implementing `Iterator` on a `Copy` type
- --> $DIR/copy_iterator.rs:8:1
+ --> $DIR/copy_iterator.rs:6:1
|
-8 | / impl Iterator for Countdown {
-9 | | type Item = u8;
-10 | |
-11 | | fn next(&mut self) -> Option<u8> {
+LL | / impl Iterator for Countdown {
+LL | | type Item = u8;
+LL | |
+LL | | fn next(&mut self) -> Option<u8> {
... |
-16 | | }
-17 | | }
+LL | | }
+LL | | }
| |_^
|
= note: `-D clippy::copy-iterator` implied by `-D warnings`