]> git.lizzy.rs Git - rust.git/blob - tests/ui/copy_iterator.stderr
iterate List by value
[rust.git] / tests / ui / copy_iterator.stderr
1 error: you are implementing `Iterator` on a `Copy` type
2   --> $DIR/copy_iterator.rs:6:1
3    |
4 LL | / impl Iterator for Countdown {
5 LL | |     type Item = u8;
6 LL | |
7 LL | |     fn next(&mut self) -> Option<u8> {
8 ...  |
9 LL | |     }
10 LL | | }
11    | |_^
12    |
13    = note: `-D clippy::copy-iterator` implied by `-D warnings`
14    = note: consider implementing `IntoIterator` instead
15
16 error: aborting due to previous error
17