Compile error when providing explicit generic arguments where impl Trait appears in bound of generic type #78936
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-impl-trait
Area: impl Trait. Universally / existentially quantified anonymous types with static dispatch.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected this to compile, however I received this error instead:
This error is unexpected, because
impl Debug
is not used in the argument position and is instead part of a trait bound on a named type parameter.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: