Invalid bound suggestion for argument-position impl trait #64565
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
gives the following error:
The suggestion
where impl Sync: std::marker::Send
is invalid: it should beimpl Sync + Send
The text was updated successfully, but these errors were encountered: