You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confusing error message with let _ : impl Trait; #70968
A-diagnosticsArea: Messages for errors, warnings, and lintsA-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.C-enhancementCategory: An issue proposing an enhancement or a PR with one.D-confusingDiagnostics: Confusing error or lint that should be reworked.D-terseDiagnostics: 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-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.
A let binding with an existential type annotation and without an initializer expression results in error[E0720]: opaque type expands to a recursive type.
error[E0720]: opaque type expands to a recursive type
--> src/lib.rs:4:13
|
4 | let _ : impl Copy;
| ^^^^^^^^^ expands to a recursive type
|
= note: type resolves to itself
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.
A-diagnosticsArea: Messages for errors, warnings, and lintsA-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.C-enhancementCategory: An issue proposing an enhancement or a PR with one.D-confusingDiagnostics: Confusing error or lint that should be reworked.D-terseDiagnostics: 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-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Activity
Expand "recursive opaque type" diagnostic
Rollup merge of rust-lang#71338 - estebank:recursive-impl-trait, r=ni…
Rollup merge of rust-lang#71338 - estebank:recursive-impl-trait, r=ni…
Rollup merge of rust-lang#71338 - estebank:recursive-impl-trait, r=ni…
Rollup merge of rust-lang#71338 - estebank:recursive-impl-trait, r=ni…
Rollup merge of rust-lang#71338 - estebank:recursive-impl-trait, r=ni…