Confusing error message with let _ : impl Trait;
#70968
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.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
F-impl_trait_in_bindings
`#![feature(impl_trait_in_bindings)]`
P-low
Low priority
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
A let binding with an existential type annotation and without an initializer expression results in error[E0720]: opaque type expands to a recursive type.
(playground)
The mention of recursion here distracts from the actual problem (the type could not be resolved to/satisfied as a concrete type) and no hint is given how to fix this error.
Related: #66523
The text was updated successfully, but these errors were encountered: