blob: 4968d3f51fe801f72dfd79caec1c90e9b114358e (
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 argument and return types
}
fn main() {}
|