Static rustc_lint::builtin::TYPE_ALIAS_BOUNDS
source · static TYPE_ALIAS_BOUNDS: &'static Lint
Expand description
The type_alias_bounds
lint detects bounds in type aliases.
Example
type SendVec<T: Send> = Vec<T>;
{{produces}}
Explanation
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.