blob: bcac0fa1e70ea2e9facb0a42477785be689370d4 (
plain)
1
2
3
4
5
6
|
struct S;
fn f() {
let _: S<impl Oops> = S; //~ ERROR cannot find trait `Oops` in this scope
//~^ ERROR `impl Trait` only allowed in function and inherent method return types
}
fn main() {}
|