struct S; fn f() { let _: S = S; //~ ERROR cannot find trait `Oops` in this scope //~^ ERROR `impl Trait` only allowed in function and inherent method return types } fn main() {}