]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/ice_exacte_size.rs
Adapt run-pass tests to the tool_lints
[rust.git] / tests / run-pass / ice_exacte_size.rs
1 #![feature(tool_lints)]
2
3 #![deny(clippy::all)]
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() {}