blob: 03c9c071c9b100216c152352ee363975fa9f0961 [file] [log] [blame]
// check-pass
use std::ops::Deref;
pub struct TypeFieldIterator<'a, T: 'a> {
_t: &'a T,
}
pub struct Type<Id, T> {
_types: Vec<(Id, T)>,
}
impl<'a, Id: 'a, T> Iterator for TypeFieldIterator<'a, T>
where T: Deref<Target = Type<Id, T>> {
type Item = &'a (Id, T);
fn next(&mut self) -> Option<&'a (Id, T)> {
|| self.next();
None
}
}
fn main() { }