blob: f465123f34c8b0b326325f8a44fea6b4668030c1 [file] [log] [blame]
#![feature(associated_type_bounds)]
trait Trait {
type Item;
}
trait Trait2 {}
// It's not possible to insert a universal `impl Trait` here!
impl dyn Trait<Item: Trait2> {}
//~^ ERROR associated type bounds are not allowed in `dyn` types
fn main() {}