blob: 30e4b11ec0bd450bcebc7c57465649e037f45e21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#![deny(clippy::all)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/1336
#[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() {}
|