]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-22066.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / issue-22066.rs
1 // check-pass
2 pub trait LineFormatter<'a> {
3     type Iter: Iterator<Item=&'a str> + 'a;
4     fn iter(&'a self, line: &'a str) -> Self::Iter;
5
6     fn dimensions(&'a self, line: &'a str) {
7         let iter: Self::Iter = self.iter(line);
8         <_ as IntoIterator>::into_iter(iter);
9     }
10 }
11
12 fn main() {}