summary refs log tree commit diff
path: root/src/test/ui/issues/issue-22066.rs
blob: 8c0b664d78ad52c2cd15d5c2d4822817cf3be270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-pass
pub trait LineFormatter<'a> {
    type Iter: Iterator<Item=&'a str> + 'a;
    fn iter(&'a self, line: &'a str) -> Self::Iter;

    fn dimensions(&'a self, line: &'a str) {
        let iter: Self::Iter = self.iter(line);
        <_ as IntoIterator>::into_iter(iter);
    }
}

fn main() {}