rust-clippy/tests/ui/copy_iterator.stderr

18 lines
413 B
Text
Raw Normal View History

2018-07-17 17:22:55 +00:00
error: you are implementing `Iterator` on a `Copy` type
2018-10-06 16:18:06 +00:00
--> $DIR/copy_iterator.rs:18:1
2018-07-17 17:22:55 +00:00
|
2018-10-06 16:18:06 +00:00
18 | / impl Iterator for Countdown {
19 | | type Item = u8;
20 | |
21 | | fn next(&mut self) -> Option<u8> {
2018-07-17 17:22:55 +00:00
... |
2018-10-06 16:18:06 +00:00
26 | | }
27 | | }
2018-07-17 17:22:55 +00:00
| |_^
|
= note: `-D clippy::copy-iterator` implied by `-D warnings`
2018-07-17 17:22:55 +00:00
= note: consider implementing `IntoIterator` instead
error: aborting due to previous error