2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-23 19:05:04 -06:00
|
|
|
#![no_implicit_prelude]
|
|
|
|
|
|
|
|
trait Iterator {
|
|
|
|
type Item;
|
2015-02-12 09:29:52 -06:00
|
|
|
fn dummy(&self) { }
|
2015-01-23 19:05:04 -06:00
|
|
|
}
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
impl<'a, T> Iterator for &'a mut (dyn Iterator<Item=T> + 'a) {
|
2015-01-23 19:05:04 -06:00
|
|
|
type Item = T;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|