summaryrefslogtreecommitdiffstats
path: root/tests/ui/ufcs/ufcs-partially-resolved.stderr
blob: eef55c8dc686f70967a2c6bb2ae9bfdc1d877da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
error[E0576]: cannot find associated type `N` in trait `Tr`
  --> $DIR/ufcs-partially-resolved.rs:19:24
   |
LL |     type Y = u16;
   |     ------------- similarly named associated type `Y` defined here
...
LL |     let _: <u8 as Tr>::N;
   |                        ^ help: an associated type with a similar name exists: `Y`

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:20:19
   |
LL |     let _: <u8 as E>::N;
   |                   ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0404]: expected trait, found type alias `A`
  --> $DIR/ufcs-partially-resolved.rs:21:19
   |
LL |     let _: <u8 as A>::N;
   |                   ^ type aliases cannot be used as traits
   |
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
   |
LL | trait A = u32;
   |

error[E0576]: cannot find method or associated constant `N` in trait `Tr`
  --> $DIR/ufcs-partially-resolved.rs:22:17
   |
LL |     fn Y() {}
   |     ------ similarly named associated function `Y` defined here
...
LL |     <u8 as Tr>::N;
   |                 ^ help: an associated function with a similar name exists: `Y`

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:23:12
   |
LL |     <u8 as E>::N;
   |            ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0404]: expected trait, found type alias `A`
  --> $DIR/ufcs-partially-resolved.rs:24:12
   |
LL |     <u8 as A>::N;
   |            ^ type aliases cannot be used as traits
   |
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
   |
LL | trait A = u32;
   |

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:26:19
   |
LL |     let _: <u8 as E>::Y;
   |                   ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:28:12
   |
LL |     <u8 as E>::Y;
   |            ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0576]: cannot find associated type `N` in trait `Tr`
  --> $DIR/ufcs-partially-resolved.rs:30:24
   |
LL |     type Y = u16;
   |     ------------- similarly named associated type `Y` defined here
...
LL |     let _: <u8 as Tr>::N::NN;
   |                        ^ help: an associated type with a similar name exists: `Y`

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:31:19
   |
LL |     let _: <u8 as E>::N::NN;
   |                   ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0404]: expected trait, found type alias `A`
  --> $DIR/ufcs-partially-resolved.rs:32:19
   |
LL |     let _: <u8 as A>::N::NN;
   |                   ^ type aliases cannot be used as traits
   |
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
   |
LL | trait A = u32;
   |

error[E0576]: cannot find associated type `N` in trait `Tr`
  --> $DIR/ufcs-partially-resolved.rs:33:17
   |
LL |     type Y = u16;
   |     ------------- similarly named associated type `Y` defined here
...
LL |     <u8 as Tr>::N::NN;
   |                 ^ help: an associated type with a similar name exists: `Y`

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:34:12
   |
LL |     <u8 as E>::N::NN;
   |            ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0404]: expected trait, found type alias `A`
  --> $DIR/ufcs-partially-resolved.rs:35:12
   |
LL |     <u8 as A>::N::NN;
   |            ^ type aliases cannot be used as traits
   |
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
   |
LL | trait A = u32;
   |

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:37:19
   |
LL |     let _: <u8 as E>::Y::NN;
   |                   ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0404]: expected trait, found enum `E`
  --> $DIR/ufcs-partially-resolved.rs:39:12
   |
LL |     <u8 as E>::Y::NN;
   |            ^ help: a trait with a similar name exists: `Eq`
  --> $SRC_DIR/core/src/cmp.rs:LL:COL
   |
   = note: similarly named trait `Eq` defined here

error[E0405]: cannot find trait `N` in trait `Tr`
  --> $DIR/ufcs-partially-resolved.rs:41:23
   |
LL |     let _: <u8 as Tr::N>::NN;
   |                       ^ not found in `Tr`

error[E0405]: cannot find trait `N` in enum `E`
  --> $DIR/ufcs-partially-resolved.rs:42:22
   |
LL |     let _: <u8 as E::N>::NN;
   |                      ^ not found in `E`

error[E0405]: cannot find trait `N` in `A`
  --> $DIR/ufcs-partially-resolved.rs:43:22
   |
LL |     let _: <u8 as A::N>::NN;
   |                      ^ not found in `A`

error[E0405]: cannot find trait `N` in trait `Tr`
  --> $DIR/ufcs-partially-resolved.rs:44:16
   |
LL |     <u8 as Tr::N>::NN;
   |                ^ not found in `Tr`

error[E0405]: cannot find trait `N` in enum `E`
  --> $DIR/ufcs-partially-resolved.rs:45:15
   |
LL |     <u8 as E::N>::NN;
   |               ^ not found in `E`

error[E0405]: cannot find trait `N` in `A`
  --> $DIR/ufcs-partially-resolved.rs:46:15
   |
LL |     <u8 as A::N>::NN;
   |               ^ not found in `A`

error[E0404]: expected trait, found associated type `Tr::Y`
  --> $DIR/ufcs-partially-resolved.rs:47:19
   |
LL |     let _: <u8 as Tr::Y>::NN;
   |                   ^^^^^ not a trait

error[E0404]: expected trait, found variant `E::Y`
  --> $DIR/ufcs-partially-resolved.rs:48:19
   |
LL |     let _: <u8 as E::Y>::NN;
   |                   ^^^^ not a trait

error[E0404]: expected trait, found associated type `Tr::Y`
  --> $DIR/ufcs-partially-resolved.rs:49:12
   |
LL |     <u8 as Tr::Y>::NN;
   |            ^^^^^ not a trait

error[E0404]: expected trait, found variant `E::Y`
  --> $DIR/ufcs-partially-resolved.rs:50:12
   |
LL |     <u8 as E::Y>::NN;
   |            ^^^^ not a trait

error[E0575]: expected associated type, found associated function `Dr::Z`
  --> $DIR/ufcs-partially-resolved.rs:52:12
   |
LL |     type X = u16;
   |     ------------- similarly named associated type `X` defined here
...
LL |     let _: <u8 as Dr>::Z;
   |            ^^^^^^^^^^^^-
   |                        |
   |                        help: an associated type with a similar name exists: `X`

error[E0575]: expected method or associated constant, found associated type `Dr::X`
  --> $DIR/ufcs-partially-resolved.rs:53:5
   |
LL |     fn Z() {}
   |     ------ similarly named associated function `Z` defined here
...
LL |     <u8 as Dr>::X;
   |     ^^^^^^^^^^^^-
   |                 |
   |                 help: an associated function with a similar name exists: `Z`
   |
   = note: can't use a type alias as a constructor

error[E0575]: expected associated type, found associated function `Dr::Z`
  --> $DIR/ufcs-partially-resolved.rs:54:12
   |
LL |     type X = u16;
   |     ------------- similarly named associated type `X` defined here
...
LL |     let _: <u8 as Dr>::Z::N;
   |            ^^^^^^^^^^^^-^^^
   |                        |
   |                        help: an associated type with a similar name exists: `X`

error[E0223]: ambiguous associated type
  --> $DIR/ufcs-partially-resolved.rs:36:12
   |
LL |     let _: <u8 as Tr>::Y::NN;
   |            ^^^^^^^^^^^^^^^^^
   |
help: if there were a trait named `Example` with associated type `NN` implemented for `<u8 as Tr>::Y`, you could use the fully-qualified path
   |
LL |     let _: <<u8 as Tr>::Y as Example>::NN;
   |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0599]: no associated item named `NN` found for type `u16` in the current scope
  --> $DIR/ufcs-partially-resolved.rs:38:20
   |
LL |     <u8 as Tr>::Y::NN;
   |                    ^^ associated item not found in `u16`

error[E0599]: no associated item named `N` found for type `u16` in the current scope
  --> $DIR/ufcs-partially-resolved.rs:55:20
   |
LL |     <u8 as Dr>::X::N;
   |                    ^ associated item not found in `u16`

error: aborting due to 32 previous errors

Some errors have detailed explanations: E0223, E0404, E0405, E0575, E0576, E0599.
For more information about an error, try `rustc --explain E0223`.