rust/src/test/ui/issues/issue-22066.rs

13 lines
302 B
Rust
Raw Normal View History

// check-pass
2017-05-03 12:07:30 -05:00
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() {}