Unhelpful trait bound diagnostic hint for arbitrary self types #64934
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
F-arbitrary_self_types
`#![feature(arbitrary_self_types)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=3d9fb14075d8fb9de8dea454fbb663e9
Code
Error message:
The error message hint is unhelpful because
Generator
is already a bound forT
. Note thatGenerator::resume
takes aPin<&mut Self>
as itsself
.The text was updated successfully, but these errors were encountered: