]> git.lizzy.rs Git - rust.git/blob - tests/ui/copy_iterator.stderr
Add license header to Rust files
[rust.git] / tests / ui / copy_iterator.stderr
1 error: you are implementing `Iterator` on a `Copy` type
2   --> $DIR/copy_iterator.rs:18:1
3    |
4 18 | / impl Iterator for Countdown {
5 19 | |     type Item = u8;
6 20 | |
7 21 | |     fn next(&mut self) -> Option<u8> {
8 ...  |
9 26 | |     }
10 27 | | }
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