struct Foo(T); //~^ ERROR `impl Trait` not allowed outside of function and method return types type Result = std::result::Result; //~^ ERROR `impl Trait` not allowed outside of function and method return types // should not cause ICE fn x() -> Foo { Foo(0) } fn main() -> Result<()> {}