diff options
Diffstat (limited to 'tests/ui/copy_iterator.rs')
| -rw-r--r-- | tests/ui/copy_iterator.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/copy_iterator.rs b/tests/ui/copy_iterator.rs index ae67ebded43..c0e5fc3e446 100644 --- a/tests/ui/copy_iterator.rs +++ b/tests/ui/copy_iterator.rs @@ -4,6 +4,8 @@ struct Countdown(u8); impl Iterator for Countdown { + //~^ ERROR: you are implementing `Iterator` on a `Copy` type + //~| NOTE: consider implementing `IntoIterator` instead type Item = u8; fn next(&mut self) -> Option<u8> { |
