rust/src/test/ui/issues/issue-21363.rs
2019-11-04 16:03:46 +01:00

16 lines
229 B
Rust

// check-pass
// pretty-expanded FIXME #23616
#![no_implicit_prelude]
trait Iterator {
type Item;
fn dummy(&self) { }
}
impl<'a, T> Iterator for &'a mut (dyn Iterator<Item=T> + 'a) {
type Item = T;
}
fn main() {}