mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
Improve suggestion for lifetime preceding type in generics Closes rust-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.