trait Trait { type Bar; } type Foo = dyn Trait; //~ ERROR E0220 //~| ERROR E0191 fn main() { }