Sign in
rust
/
rust-clippy
/
9bdd84cfdb8d76759e921c7c77f3ee3dd6e30c9f
/
.
/
tests
/
ice_exacte_size.rs
blob: eeab3a2bec593276656472c31471efea0c913018 [
file
] [
log
] [
blame
]
#![
feature
(
plugin
)]
#![
plugin
(
clippy
)]
#![
deny
(
clippy
)]
#[
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
{}