]> git.lizzy.rs Git - rust.git/blob - tests/ui/copy_iterator.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / copy_iterator.stderr
1 error: you are implementing `Iterator` on a `Copy` type
2   --> $DIR/copy_iterator.rs:15:1
3    |
4 15 | / impl Iterator for Countdown {
5 16 | |     type Item = u8;
6 17 | |
7 18 | |     fn next(&mut self) -> Option<u8> {
8 ...  |
9 23 | |     }
10 24 | | }
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