]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice_exacte_size.rs
Merge pull request #3918 from matthiaskrgr/typos
[rust.git] / tests / ui / crashes / ice_exacte_size.rs
1 // run-pass
2
3 #![deny(clippy::all)]
4
5 /// Test for https://github.com/rust-lang/rust-clippy/issues/1336
6
7 #[allow(dead_code)]
8 struct Foo;
9
10 impl Iterator for Foo {
11     type Item = ();
12
13     fn next(&mut self) -> Option<()> {
14         let _ = self.len() == 0;
15         unimplemented!()
16     }
17 }
18
19 impl ExactSizeIterator for Foo {}
20
21 fn main() {}