d2061faf9e
* applying * binding * complex * constituent * demonstrate * desugaring * exact * expression * for * functionalities * github * implementation * infers * multiple conflicting traits * mutable * necessarily * nightly * nonexistent * optional * parameter * reassignments * resources * substitution * suggestion * that * that array is * using the Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
20 lines
322 B
Rust
20 lines
322 B
Rust
#![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() {}
|