]> git.lizzy.rs Git - rust.git/blob - tests/ice_exacte_size.rs
Merge pull request #2730 from NiekGr/len_zero_use_of_one
[rust.git] / tests / ice_exacte_size.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3 #![deny(clippy)]
4
5 #[allow(dead_code)]
6 struct Foo;
7
8 impl Iterator for Foo {
9     type Item = ();
10
11     fn next(&mut self) -> Option<()> {
12         let _ = self.len() == 0;
13         unimplemented!()
14     }
15 }
16
17 impl ExactSizeIterator for Foo {}