]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice_exacte_size.rs
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / tests / ui / crashes / ice_exacte_size.rs
1 #![deny(clippy::all)]
2
3 /// Test for https://github.com/rust-lang/rust-clippy/issues/1336
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 {}
18
19 fn main() {}