Fix garbled suggestion for missing lifetime specifier
This commit is contained in:
parent
a4f832b275
commit
f333b4795c
3 changed files with 45 additions and 0 deletions
|
@ -1962,6 +1962,8 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
|
|||
hir::GenericParamKind::Type {
|
||||
synthetic: Some(hir::SyntheticTyParamKind::ImplTrait),
|
||||
..
|
||||
} | hir::GenericParamKind::Lifetime {
|
||||
kind: hir::LifetimeParamKind::Elided
|
||||
}
|
||||
)
|
||||
}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue