1 error[E0599]: no method named `self_ty_ref_hello` found for struct `GenericAssocMethod<{integer}>` in the current scope
2 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:14:7
4 LL | struct GenericAssocMethod<T>(T);
5 | ---------------------------- method `self_ty_ref_hello` not found for this struct
7 LL | x.self_ty_ref_hello();
8 | --^^^^^^^^^^^^^^^^^--
10 | | this is an associated function, not a method
11 | help: use associated function syntax instead: `GenericAssocMethod::<_>::self_ty_ref_hello(&x)`
13 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
14 note: the candidate is defined in an impl for the type `GenericAssocMethod<T>`
15 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:8:5
17 LL | fn self_ty_ref_hello(_: &Self) {}
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 error[E0599]: no method named `self_ty_hello` found for struct `GenericAssocMethod<{integer}>` in the current scope
21 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:16:7
23 LL | struct GenericAssocMethod<T>(T);
24 | ---------------------------- method `self_ty_hello` not found for this struct
26 LL | x.self_ty_hello();
29 | | this is an associated function, not a method
30 | help: use associated function syntax instead: `GenericAssocMethod::<_>::self_ty_hello(x)`
32 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
33 note: the candidate is defined in an impl for the type `GenericAssocMethod<T>`
34 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:7:5
36 LL | fn self_ty_hello(_: Self) {}
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^
39 error[E0599]: no method named `default_hello` found for struct `GenericAssocMethod<i32>` in the current scope
40 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:20:7
42 LL | struct GenericAssocMethod<T>(T);
43 | ---------------------------- method `default_hello` not found for this struct
45 LL | y.default_hello();
48 | | this is an associated function, not a method
49 | help: use associated function syntax instead: `GenericAssocMethod::<i32>::default_hello()`
51 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
52 note: the candidate is defined in an impl for the type `GenericAssocMethod<T>`
53 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:6:5
55 LL | fn default_hello() {}
58 error[E0599]: no method named `self_ty_ref_hello` found for struct `GenericAssocMethod<i32>` in the current scope
59 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:22:7
61 LL | struct GenericAssocMethod<T>(T);
62 | ---------------------------- method `self_ty_ref_hello` not found for this struct
64 LL | y.self_ty_ref_hello();
65 | --^^^^^^^^^^^^^^^^^--
67 | | this is an associated function, not a method
68 | help: use associated function syntax instead: `GenericAssocMethod::<i32>::self_ty_ref_hello(&y)`
70 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
71 note: the candidate is defined in an impl for the type `GenericAssocMethod<T>`
72 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:8:5
74 LL | fn self_ty_ref_hello(_: &Self) {}
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 error[E0599]: no method named `self_ty_hello` found for struct `GenericAssocMethod<i32>` in the current scope
78 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:24:7
80 LL | struct GenericAssocMethod<T>(T);
81 | ---------------------------- method `self_ty_hello` not found for this struct
83 LL | y.self_ty_hello();
86 | | this is an associated function, not a method
87 | help: use associated function syntax instead: `GenericAssocMethod::<i32>::self_ty_hello(y)`
89 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
90 note: the candidate is defined in an impl for the type `GenericAssocMethod<T>`
91 --> $DIR/suggest-assoc-fn-call-with-turbofish.rs:7:5
93 LL | fn self_ty_hello(_: Self) {}
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^
96 error: aborting due to 5 previous errors
98 For more information about this error, try `rustc --explain E0599`.