Skip to content

Commit af1f28e

Browse files
authored
Rollup merge of #154557 - Muhtasim-Rasheed:issue-147313-improve-help, r=chenyukang
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
2 parents 4872c80 + 592b9fb commit af1f28e

0 file changed

File tree

    0 commit comments

    Comments
     (0)