// check-pass
-#![feature(specialization)]
+#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
pub struct Cloned<I>(I);
fn next(&mut self) -> Option<T> {
unimplemented!()
}
+
+ default fn count(self) -> usize where Self: Sized {
+ self.fold(0, |cnt, _| cnt + 1)
+ }
}
impl<'a, I, T: 'a> Iterator for Cloned<I>