mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-20 20:12:09 +00:00

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`
For more information about how rustc works, see the rustc dev guide.