1 error[E0282]: type annotations needed
2 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:45:11
7 help: try using a fully qualified path to specify the expected types
9 LL | <Thing as Method<T>>::method(&thing);
10 | ++++++++++++++++++++++++++++++ ~
12 error[E0283]: type annotations needed
13 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:45:11
18 note: multiple `impl`s satisfying `Thing: Method<_>` found
19 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
21 LL | impl Method<i32> for Thing {
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
24 LL | impl Method<u32> for Thing {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
26 help: try using a fully qualified path to specify the expected types
28 LL | <Thing as Method<T>>::method(&thing);
29 | ++++++++++++++++++++++++++++++ ~
31 error[E0283]: type annotations needed
32 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:48:11
34 LL | thing.mut_method();
37 note: multiple `impl`s satisfying `Thing: Method<_>` found
38 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
40 LL | impl Method<i32> for Thing {
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
43 LL | impl Method<u32> for Thing {
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
45 help: try using a fully qualified path to specify the expected types
47 LL | <Thing as Method<T>>::mut_method(&mut thing);
48 | +++++++++++++++++++++++++++++++++++++ ~
50 error[E0283]: type annotations needed
51 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:49:11
56 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
57 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
59 LL | impl MethodRef<i32> for &Thing {
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 LL | impl MethodRef<u32> for &Thing {
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 help: try using a fully qualified path to specify the expected types
66 LL | <&Thing as MethodRef<T>>::by_self(&thing);
67 | +++++++++++++++++++++++++++++++++++ ~
69 error[E0283]: type annotations needed
70 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:52:14
72 LL | deref_to.method();
75 note: multiple `impl`s satisfying `Thing: Method<_>` found
76 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
78 LL | impl Method<i32> for Thing {
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
81 LL | impl Method<u32> for Thing {
82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
83 help: try using a fully qualified path to specify the expected types
85 LL | <Thing as Method<T>>::method(&deref_to);
86 | ++++++++++++++++++++++++++++++ ~
88 error[E0283]: type annotations needed
89 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:53:14
91 LL | deref_to.mut_method();
94 note: multiple `impl`s satisfying `Thing: Method<_>` found
95 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
97 LL | impl Method<i32> for Thing {
98 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
100 LL | impl Method<u32> for Thing {
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
102 help: try using a fully qualified path to specify the expected types
104 LL | <Thing as Method<T>>::mut_method(&mut deref_to);
105 | +++++++++++++++++++++++++++++++++++++ ~
107 error[E0283]: type annotations needed
108 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:54:14
110 LL | deref_to.by_self();
113 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
114 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
116 LL | impl MethodRef<i32> for &Thing {
117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 LL | impl MethodRef<u32> for &Thing {
120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 help: try using a fully qualified path to specify the expected types
123 LL | <&Thing as MethodRef<T>>::by_self(&deref_to);
124 | +++++++++++++++++++++++++++++++++++ ~
126 error[E0283]: type annotations needed
127 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:57:20
129 LL | deref_deref_to.method();
132 note: multiple `impl`s satisfying `Thing: Method<_>` found
133 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
135 LL | impl Method<i32> for Thing {
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
138 LL | impl Method<u32> for Thing {
139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
140 help: try using a fully qualified path to specify the expected types
142 LL | <Thing as Method<T>>::method(&deref_deref_to);
143 | ++++++++++++++++++++++++++++++ ~
145 error[E0283]: type annotations needed
146 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:58:20
148 LL | deref_deref_to.mut_method();
151 note: multiple `impl`s satisfying `Thing: Method<_>` found
152 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
154 LL | impl Method<i32> for Thing {
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
157 LL | impl Method<u32> for Thing {
158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
159 help: try using a fully qualified path to specify the expected types
161 LL | <Thing as Method<T>>::mut_method(&mut deref_deref_to);
162 | +++++++++++++++++++++++++++++++++++++ ~
164 error[E0283]: type annotations needed
165 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:59:20
167 LL | deref_deref_to.by_self();
170 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
171 --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
173 LL | impl MethodRef<i32> for &Thing {
174 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176 LL | impl MethodRef<u32> for &Thing {
177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178 help: try using a fully qualified path to specify the expected types
180 LL | <&Thing as MethodRef<T>>::by_self(&deref_deref_to);
181 | +++++++++++++++++++++++++++++++++++ ~
183 error: aborting due to 10 previous errors
185 Some errors have detailed explanations: E0282, E0283.
186 For more information about an error, try `rustc --explain E0282`.