#![feature(trait_alias)] trait Foo: Iterator {} trait Bar: Foo {} //~ ERROR type annotations needed trait I32Iterator = Iterator; trait U32Iterator = I32Iterator; //~ ERROR type annotations needed fn main() { let _: &dyn I32Iterator; }