11
11
// Test that we evaluate projection predicates to winnow out
12
12
// candidates during trait selection and method resolution (#20296).
13
13
// If we don't properly winnow out candidates based on the output type
14
- // `Output =[A]`, then the impl marked with `(*)` is seen to conflict
14
+ // `Target =[A]`, then the impl marked with `(*)` is seen to conflict
15
15
// with all the others.
16
16
17
17
#![ feature( associated_types, default_type_params) ]
@@ -32,10 +32,10 @@ impl<A, B> MyEq<[B]> for [A]
32
32
}
33
33
}
34
34
35
- // (*) This impl conflicts with everything unless the `Output =[A]`
35
+ // (*) This impl conflicts with everything unless the `Target =[A]`
36
36
// constraint is considered.
37
37
impl < ' a , A , B , Lhs > MyEq < [ B ; 0 ] > for Lhs
38
- where A : MyEq < B > , Lhs : Deref < Output =[ A ] >
38
+ where A : MyEq < B > , Lhs : Deref < Target =[ A ] >
39
39
{
40
40
fn eq ( & self , other : & [ B ; 0 ] ) -> bool {
41
41
MyEq :: eq ( & * * self , other. as_slice ( ) )
@@ -57,7 +57,7 @@ impl<T> Helper<T> for Option<T> {
57
57
}
58
58
59
59
impl < T , H : Helper < T > > Deref for DerefWithHelper < H , T > {
60
- type Output = T ;
60
+ type Target = T ;
61
61
62
62
fn deref ( & self ) -> & T {
63
63
self . helper . helper_borrow ( )
0 commit comments