3 struct GenericAssocMethod<T>(T);
5 impl<T> GenericAssocMethod<T> {
7 fn self_ty_hello(_: Self) {}
8 fn self_ty_ref_hello(_: &Self) {}
12 // Test for inferred types
13 let x = GenericAssocMethod(33);
14 x.self_ty_ref_hello();
15 //~^ ERROR no method named `self_ty_ref_hello` found
17 //~^ ERROR no method named `self_ty_hello` found
18 // Test for known types
19 let y = GenericAssocMethod(33i32);
21 //~^ ERROR no method named `default_hello` found
22 y.self_ty_ref_hello();
23 //~^ ERROR no method named `self_ty_ref_hello` found
25 //~^ ERROR no method named `self_ty_hello` found