Wrong error reporting for missing trait implementations #20366
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Arc's
Send
andSync
looks like:Therefore, the code below, makes the
Arc
object neitherSend
norSync
.Unfortunately, the error reported is quite obscure, as it mentions that the
is_send
function requiresT
to beSync
which is not true.If we put the
Arc
in a wrapper type, then the error becomes even more obscure as it reports thatSend
is not being guaranteed becauseSync
is not implemented. Although this being true to some extent, it's not helpful at all:The text was updated successfully, but these errors were encountered: