Closed
Description
As this playpen shows, diagnostic E0122 does not catch trait bounds introduced via where
clauses.
Specifically,
type X<T: std::ops::Add> = T;
triggers a warning, but
type Y<T> where T: std::ops::Add = T;
does not.
As this playpen shows, diagnostic E0122 does not catch trait bounds introduced via where
clauses.
Specifically,
type X<T: std::ops::Add> = T;
triggers a warning, but
type Y<T> where T: std::ops::Add = T;
does not.