rust/compiler/rustc_middle
Matthias Krüger f8b83a2aa6
Rollup merge of #89892 - Nilstrieb:suggest-return-impl-trait, r=jackh726
Suggest `impl Trait` return type when incorrectly using a generic return type

Address #85991

When there is a type mismatch error and the return type is generic, and that generic parameter is not used in the function parameters, suggest replacing that generic with the `impl Trait` syntax.

r? `@estebank`
2022-02-18 23:23:02 +01:00
..
benches
src Rollup merge of #89892 - Nilstrieb:suggest-return-impl-trait, r=jackh726 2022-02-18 23:23:02 +01:00
Cargo.toml ⬆ chalk to 0.76.0 2022-01-19 13:44:43 -06:00
README.md

For more information about how rustc works, see the rustc dev guide.