Skip to content

Commit 45a3c2f

Browse files
committed
Add a FIXME relating to regions and projection types
1 parent 6fa9175 commit 45a3c2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_typeck/check/regionmanip.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ impl<'a, 'tcx> Wf<'a, 'tcx> {
125125
ty::ty_projection(ref data) => {
126126
// `<T as TraitRef<..>>::Name`
127127

128-
// TODO What region constraints are necessary here, if any??
128+
// FIXME(#20303) -- gain ability to require that ty_projection : in-scope region,
129+
// like a type parameter
129130

130131
// this seems like a minimal requirement:
131132
let trait_def = ty::lookup_trait_def(self.tcx, data.trait_ref.def_id);

0 commit comments

Comments
 (0)