summaryrefslogtreecommitdiffstats
path: root/tests/ui/ufcs/ufcs-partially-resolved.stderr
blob: 72fccea8ae399f1b763a23756c0169210cdad7ed (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
error[E0433]: failed to resolve: `Y` is a variant, not a module
  --> $DIR/ufcs-partially-resolved.rs:48:22
   |
LL |     let _: <u8 as E::Y>::NN;
   |                      ^ `Y` is a variant, not a module

error[E0433]: failed to resolve: `Y` is a variant, not a module
  --> $DIR/ufcs-partially-resolved.rs:50:15
   |
LL |     <u8 as E::Y>::NN;
   |               ^ `Y` is a variant, not a module

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[E0576]: cannot find associated type `N` in enum `E`
  --> $DIR/ufcs-partially-resolved.rs:20:23
   |
LL |     let _: <u8 as E>::N;
   |                       ^ not found in `E`

error[E0576]: cannot find associated type `N` in `A`
  --> $DIR/ufcs-partially-resolved.rs:21:23
   |
LL |     let _: <u8 as A>::N;
   |                       ^ not found in `A`

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[E0576]: cannot find method or associated constant `N` in enum `E`
  --> $DIR/ufcs-partially-resolved.rs:23:16
   |
LL |     <u8 as E>::N;
   |                ^ not found in `E`

error[E0576]: cannot find method or associated constant `N` in `A`
  --> $DIR/ufcs-partially-resolved.rs:24:16
   |
LL |     <u8 as A>::N;
   |                ^ not found in `A`

error[E0575]: expected associated type, found variant `E::Y`
  --> $DIR/ufcs-partially-resolved.rs:26:12
   |
LL |     let _: <u8 as E>::Y;
   |            ^^^^^^^^^^^^ not a associated type

error[E0575]: expected method or associated constant, found unit variant `E::Y`
  --> $DIR/ufcs-partially-resolved.rs:28:5
   |
LL |     <u8 as E>::Y;
   |     ^^^^^^^^^^^^ not a method or associated constant

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[E0576]: cannot find associated type `N` in enum `E`
  --> $DIR/ufcs-partially-resolved.rs:31:23
   |
LL |     let _: <u8 as E>::N::NN;
   |                       ^ not found in `E`

error[E0576]: cannot find associated type `N` in `A`
  --> $DIR/ufcs-partially-resolved.rs:32:23
   |
LL |     let _: <u8 as A>::N::NN;
   |                       ^ not found in `A`

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[E0576]: cannot find associated type `N` in enum `E`
  --> $DIR/ufcs-partially-resolved.rs:34:16
   |
LL |     <u8 as E>::N::NN;
   |                ^ not found in `E`

error[E0576]: cannot find associated type `N` in `A`
  --> $DIR/ufcs-partially-resolved.rs:35:16
   |
LL |     <u8 as A>::N::NN;
   |                ^ not found in `A`

error[E0575]: expected associated type, found variant `E::Y`
  --> $DIR/ufcs-partially-resolved.rs:37:12
   |
LL |     let _: <u8 as E>::Y::NN;
   |            ^^^^^^^^^^^^^^^^ not a associated type

error[E0575]: expected associated type, found variant `E::Y`
  --> $DIR/ufcs-partially-resolved.rs:39:5
   |
LL |     <u8 as E>::Y::NN;
   |     ^^^^^^^^^^^^^^^^ not a associated type

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

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

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

error[E0576]: cannot find method or associated constant `NN` in `Tr::N`
  --> $DIR/ufcs-partially-resolved.rs:44:20
   |
LL |     <u8 as Tr::N>::NN;
   |                    ^^ not found in `Tr::N`

error[E0576]: cannot find method or associated constant `NN` in `E::N`
  --> $DIR/ufcs-partially-resolved.rs:45:19
   |
LL |     <u8 as E::N>::NN;
   |                   ^^ not found in `E::N`

error[E0576]: cannot find method or associated constant `NN` in `A::N`
  --> $DIR/ufcs-partially-resolved.rs:46:19
   |
LL |     <u8 as A::N>::NN;
   |                   ^^ not found in `A::N`

error[E0576]: cannot find associated type `NN` in `Tr::Y`
  --> $DIR/ufcs-partially-resolved.rs:47:27
   |
LL |     let _: <u8 as Tr::Y>::NN;
   |                           ^^ not found in `Tr::Y`

error[E0576]: cannot find method or associated constant `NN` in `Tr::Y`
  --> $DIR/ufcs-partially-resolved.rs:49:20
   |
LL |     <u8 as Tr::Y>::NN;
   |                    ^^ not found in `Tr::Y`

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, E0433, E0575, E0576, E0599.
For more information about an error, try `rustc --explain E0223`.