struct Foo(T); //~^ ERROR `impl Trait` is not allowed in generic parameter defaults type Result = std::result::Result; //~^ ERROR `impl Trait` is not allowed in generic parameter defaults // should not cause ICE fn x() -> Foo { Foo(0) } fn main() -> Result<()> {}