Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes
This commit is contained in:
parent
1755c85302
commit
1dc2119c03
20 changed files with 150 additions and 36 deletions
|
@ -564,6 +564,7 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {
|
|||
opaque_type_key,
|
||||
self.fcx.infcx.tcx,
|
||||
true,
|
||||
decl.origin,
|
||||
);
|
||||
|
||||
self.typeck_results.concrete_opaque_types.insert(opaque_type_key.def_id, hidden_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue