16 lines
229 B
Rust
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() {}
|