We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37e18b1 commit 18c1374Copy full SHA for 18c1374
src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs
@@ -489,7 +489,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
489
Some(ty::RegionKind::ReStatic)
490
) = (self.to_error_region(fr), self.to_error_region(outlived_fr)) {
491
if let Some(ty::TyS {
492
- sty: ty::TyKind::Anon(did, substs),
+ sty: ty::TyKind::Opaque(did, substs),
493
..
494
}) = infcx.tcx.is_suitable_region(f)
495
.map(|r| r.def_id)
0 commit comments