mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
16 lines
202 B
Rust
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() {}
|