#![feature(type_alias_impl_trait)] pub trait Bar { type Item; } type Foo = impl Bar; //~^ ERROR: unconstrained opaque type fn crash(x: Foo) -> Foo { x } fn main() {}