]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-24338.rs
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / issue-24338.rs
1 //
2 // check-pass
3
4 trait DictLike<'a> {
5     type ItemsIterator: Iterator<Item=u8>;
6     fn get(c: Self::ItemsIterator) {
7         c.into_iter();
8     }
9 }
10
11 trait DictLike2<'a> {
12     type ItemsIterator: Iterator<Item=u8>;
13
14     fn items(&self) -> Self::ItemsIterator;
15
16     fn get(&self)  {
17         for _ in self.items() {}
18     }
19 }
20
21 fn main() {}