rust/tests/ui/associated-type-bounds/bad-universal-in-dyn-in-whe...

13 lines
168 B
Rust

trait B {
type AssocType;
}
fn f()
where
dyn for<'j> B<AssocType: 'j>:,
//~^ ERROR associated type bounds are not allowed in `dyn` types
{
}
fn main() {}