The type_alias_bounds
lint misfires when impl Trait
is used in a portion of a type alias
#94395
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Compiling this code (Playground) produces the following diagnostics:
I expected to see this happen: The compiler should not have suggested removing
: Send
from the type alias.Instead, this happened: Removing
: Send
as per the compiler's suggestion breaks the code.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: