rust/tests/ui/associated-type-bounds/missing-trait-bound-for-ass...

11 lines
206 B
Rust

#[allow(dead_code)]
fn foo<M>(_m: M)
where
M::Item: Temp,
//~^ ERROR cannot find trait `Temp` in this scope [E0405]
//~| ERROR associated type `Item` not found for `M` [E0220]
{
}
fn main() {}