]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/ice_exacte_size.rs
Fix note on macro outside current crate. Changed group to restricted
[rust.git] / tests / run-pass / ice_exacte_size.rs
1 #![deny(clippy)]
2
3 #[allow(dead_code)]
4 struct Foo;
5
6 impl Iterator for Foo {
7     type Item = ();
8
9     fn next(&mut self) -> Option<()> {
10         let _ = self.len() == 0;
11         unimplemented!()
12     }
13 }
14
15 impl ExactSizeIterator for Foo {}
16
17 fn main() {}