Misleading TAIT diagnostic on missing Send + Sync
bound
#99799
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
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.
I tried this code:
https://gist.github.com/ivan770/709330e60ce2dcfbfcb04d5dd539247b
(I think it's possible to minimize it a bit, however I'm not sure on how to do that in this case)
I expected to see this happen: It provides a meaningful diagnostic that I have to add
Send + Sync
bound toNonSendSync
.Instead, this happened: Misleading error occures:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: