trait bound is reported not satisfied although it is #61021
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hello!
Rustc report an unsatisfied trait bound. However, following the compiler suggestion does not help much. Working with tokio.
Is #43580 also relevant for this one ?
Thanks.
Sample code.
Compiler output.
This is happening both on stable and nightly, freshly updated.
Dependencies.
Edit:
This sample code get compiled.
I would say that:
help: consider adding a 'where U: tokio::codec::Decoder' bound
is misleading as thewhere
clause does not apply on struct definitionThe text was updated successfully, but these errors were encountered: