rust/tests/ui/associated-type-bounds/associated-item-through-whe...

22 lines
174 B
Rust

//@ check-pass
trait Foo {
type Item;
}
trait Bar
where
Self: Foo,
{
}
#[allow(dead_code)]
fn foo<M>(_m: M)
where
M: Bar,
M::Item: Send,
{
}
fn main() {}