mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
a8e1664fd8
Make E0284 generic argument suggestions more explicit Closes rust-lang/rust#147313 Previously, when type annotations were missing for a function call, rust suggested: "consider specifying the generic argument". This PR improves the diagnostics: - If only one generic type is missing: "consider specifying a concrete type for the generic type `<T>`" with the turbofish being "::\<SomeConcreteType>" - If only one const generic is missing: "consider specifying a const for the const generic `<CONST>`" with the turbofish being "::<SOME_CONST>" Multiple missing generics still produce the original more general suggestion