mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
19 lines
535 B
Rust
19 lines
535 B
Rust
//~ 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() {}
|