trait Add { type Output; } trait Sub { type Output; } type Test = dyn Add + Sub; //~^ ERROR E0225 fn main() { }