1
Fork 0

Fix garbled suggestion for missing lifetime specifier

This commit is contained in:
Fabian Wolff 2021-06-28 00:56:24 +02:00
parent a4f832b275
commit f333b4795c
3 changed files with 45 additions and 0 deletions

View file

@ -1962,6 +1962,8 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
hir::GenericParamKind::Type {
synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
..
} | hir::GenericParamKind::Lifetime {
kind: hir::LifetimeParamKind::Elided
}
)
}) {