/ rust Public
Compile error when providing explicit generic arguments where impl Trait appears in bound of generic type #78936
Area: Messages for errors, warnings, and lints
Area: impl Trait. Universally / existentially quantified anonymous types with static dispatch.
Category: An issue proposing an enhancement or a PR with one.
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 Debugis not used in the argument position and is instead part of a trait bound on a named type parameter.
rustc --version --verbose:
The text was updated successfully, but these errors were encountered: