]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #95395 - compiler-errors:infer-on-impl-for-trait, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 24 Apr 2022 22:10:59 +0000 (00:10 +0200)
committerGitHub <noreply@github.com>
Sun, 24 Apr 2022 22:10:59 +0000 (00:10 +0200)
Better error message for `_` in function signature in `impl Trait for Ty`

Provides a replacement suggestion for when `_` is present in the function signature for `impl Trait for Ty`, using the substitutions from the trait to compute the exact type.

Fixes #95097


Trivial merge