blob: a40c8cc26bd94021db5e4d933a140a498567214e [file] [edit]
//~ ERROR overflow evaluating the requirement `Self: StreamingIterator<'_>` [E0275]
// Regression test for <https://github.com/rust-lang/rust/issues/153354>.
trait StreamingIterator<'a> {
type Item: 'a;
}
impl<'b, I, T> StreamingIterator<'b> for I
//~^ ERROR the type parameter `T` is not constrained by the impl trait, self type, or predicates [E0207]
where
I: IntoIterator,
T: FnMut(Self::Item, I::Item),
{
type Item = T;
//~^ ERROR overflow evaluating the requirement `I: IntoIterator` [E0275]
}
fn main() {}