Improve suggestion for lifetime preceding type in generics
Closesrust-lang/rust#59325
Specifically, this fixes cases like the 2nd example in the issue, where a lifetime precedes a type in generic args:
`Foo<'static T1>` and suggests either adding a reference, i.e. `Foo<&'static T1>` or a comma, i.e. `Foo<'static, T1>`.
In a case like `Foo<'static mut T1>`, only `Foo<&'static mut T1>` is suggested.