rust/tests/ui/associated-types/impl-wf-cycle-4.rs

16 lines
202 B
Rust

trait Filter {
type ToMatch;
}
impl<T> Filter for T //~ ERROR overflow evaluating the requirement
where
T: Fn(Self::ToMatch),
{
}
struct JustFilter<F: Filter> {
filter: F,
}
fn main() {}