rust/tests/run-pass/ice_exacte_size.rs
2018-08-29 11:08:29 -07:00

20 lines
280 B
Rust

#![feature(tool_lints)]
#![deny(clippy::all)]
#[allow(dead_code)]
struct Foo;
impl Iterator for Foo {
type Item = ();
fn next(&mut self) -> Option<()> {
let _ = self.len() == 0;
unimplemented!()
}
}
impl ExactSizeIterator for Foo {}
fn main() {}