File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
compiler/rustc_hir_analysis/src/collect
tests/ui/traits/const-traits Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ fn remap_gat_vars_and_recurse_into_nested_projections<'tcx>(
124
124
ty:: ClauseKind :: Trait ( tr) => tr. self_ty ( ) ,
125
125
ty:: ClauseKind :: Projection ( proj) => proj. projection_term . self_ty ( ) ,
126
126
ty:: ClauseKind :: TypeOutlives ( outlives) => outlives. 0 ,
127
+ ty:: ClauseKind :: HostEffect ( host) => host. self_ty ( ) ,
127
128
_ => return None ,
128
129
} ;
129
130
Original file line number Diff line number Diff line change
1
+ //@ check-pass
2
+
3
+ #![ feature( const_trait_impl) ]
4
+
5
+ #[ const_trait]
6
+ trait A where Self :: Assoc : const B {
7
+ type Assoc ;
8
+ }
9
+
10
+ #[ const_trait]
11
+ trait B { }
12
+
13
+ fn needs_b < T : const B > ( ) { }
14
+
15
+ fn test < T : A > ( ) {
16
+ needs_b :: < T :: Assoc > ( ) ;
17
+ }
18
+
19
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments