Static rustc_lint::builtin::TYPE_ALIAS_BOUNDS

source ·
Expand description

The type_alias_bounds lint detects bounds in type aliases.


type SendVec<T: Send> = Vec<T>;



The trait bounds in a type alias are currently ignored, and should not be included to avoid confusion. This was previously allowed unintentionally; this may become a hard error in the future.