summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-21363.rs
blob: acc28cb430b273bb0dbcc75be44e23b0dacf4579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}