]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/suggest-fully-qualified-path-with-adjustment.stderr
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / traits / suggest-fully-qualified-path-with-adjustment.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:45:11
3    |
4 LL |     thing.method();
5    |           ^^^^^^
6    |
7 help: try using a fully qualified path to specify the expected types
8    |
9 LL |     <Thing as Method<T>>::method(&thing);
10    |     ++++++++++++++++++++++++++++++     ~
11
12 error[E0283]: type annotations needed
13   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:45:11
14    |
15 LL |     thing.method();
16    |           ^^^^^^
17    |
18 note: multiple `impl`s satisfying `Thing: Method<_>` found
19   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
20    |
21 LL | impl Method<i32> for Thing {
22    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
23 ...
24 LL | impl Method<u32> for Thing {
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
26 help: try using a fully qualified path to specify the expected types
27    |
28 LL |     <Thing as Method<T>>::method(&thing);
29    |     ++++++++++++++++++++++++++++++     ~
30
31 error[E0283]: type annotations needed
32   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:48:11
33    |
34 LL |     thing.mut_method();
35    |           ^^^^^^^^^^
36    |
37 note: multiple `impl`s satisfying `Thing: Method<_>` found
38   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
39    |
40 LL | impl Method<i32> for Thing {
41    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
42 ...
43 LL | impl Method<u32> for Thing {
44    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
45 help: try using a fully qualified path to specify the expected types
46    |
47 LL |     <Thing as Method<T>>::mut_method(&mut thing);
48    |     +++++++++++++++++++++++++++++++++++++      ~
49
50 error[E0283]: type annotations needed
51   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:49:11
52    |
53 LL |     thing.by_self();
54    |           ^^^^^^^
55    |
56 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
57   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
58    |
59 LL | impl MethodRef<i32> for &Thing {
60    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 ...
62 LL | impl MethodRef<u32> for &Thing {
63    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 help: try using a fully qualified path to specify the expected types
65    |
66 LL |     <&Thing as MethodRef<T>>::by_self(&thing);
67    |     +++++++++++++++++++++++++++++++++++     ~
68
69 error[E0283]: type annotations needed
70   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:52:14
71    |
72 LL |     deref_to.method();
73    |              ^^^^^^
74    |
75 note: multiple `impl`s satisfying `Thing: Method<_>` found
76   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
77    |
78 LL | impl Method<i32> for Thing {
79    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
80 ...
81 LL | impl Method<u32> for Thing {
82    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
83 help: try using a fully qualified path to specify the expected types
84    |
85 LL |     <Thing as Method<T>>::method(&deref_to);
86    |     ++++++++++++++++++++++++++++++        ~
87
88 error[E0283]: type annotations needed
89   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:53:14
90    |
91 LL |     deref_to.mut_method();
92    |              ^^^^^^^^^^
93    |
94 note: multiple `impl`s satisfying `Thing: Method<_>` found
95   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
96    |
97 LL | impl Method<i32> for Thing {
98    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
99 ...
100 LL | impl Method<u32> for Thing {
101    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
102 help: try using a fully qualified path to specify the expected types
103    |
104 LL |     <Thing as Method<T>>::mut_method(&mut deref_to);
105    |     +++++++++++++++++++++++++++++++++++++         ~
106
107 error[E0283]: type annotations needed
108   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:54:14
109    |
110 LL |     deref_to.by_self();
111    |              ^^^^^^^
112    |
113 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
114   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
115    |
116 LL | impl MethodRef<i32> for &Thing {
117    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118 ...
119 LL | impl MethodRef<u32> for &Thing {
120    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 help: try using a fully qualified path to specify the expected types
122    |
123 LL |     <&Thing as MethodRef<T>>::by_self(&deref_to);
124    |     +++++++++++++++++++++++++++++++++++        ~
125
126 error[E0283]: type annotations needed
127   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:57:20
128    |
129 LL |     deref_deref_to.method();
130    |                    ^^^^^^
131    |
132 note: multiple `impl`s satisfying `Thing: Method<_>` found
133   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
134    |
135 LL | impl Method<i32> for Thing {
136    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
137 ...
138 LL | impl Method<u32> for Thing {
139    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
140 help: try using a fully qualified path to specify the expected types
141    |
142 LL |     <Thing as Method<T>>::method(&deref_deref_to);
143    |     ++++++++++++++++++++++++++++++              ~
144
145 error[E0283]: type annotations needed
146   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:58:20
147    |
148 LL |     deref_deref_to.mut_method();
149    |                    ^^^^^^^^^^
150    |
151 note: multiple `impl`s satisfying `Thing: Method<_>` found
152   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
153    |
154 LL | impl Method<i32> for Thing {
155    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
156 ...
157 LL | impl Method<u32> for Thing {
158    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
159 help: try using a fully qualified path to specify the expected types
160    |
161 LL |     <Thing as Method<T>>::mut_method(&mut deref_deref_to);
162    |     +++++++++++++++++++++++++++++++++++++               ~
163
164 error[E0283]: type annotations needed
165   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:59:20
166    |
167 LL |     deref_deref_to.by_self();
168    |                    ^^^^^^^
169    |
170 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
171   --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
172    |
173 LL | impl MethodRef<i32> for &Thing {
174    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175 ...
176 LL | impl MethodRef<u32> for &Thing {
177    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178 help: try using a fully qualified path to specify the expected types
179    |
180 LL |     <&Thing as MethodRef<T>>::by_self(&deref_deref_to);
181    |     +++++++++++++++++++++++++++++++++++              ~
182
183 error: aborting due to 10 previous errors
184
185 Some errors have detailed explanations: E0282, E0283.
186 For more information about an error, try `rustc --explain E0282`.