Schard
1
I searched the rustfmt config options and clippy lints, but could not find anything.
In a code base I want to enforce trait bounds by where clauses.
I.e. I want:
fn foo<T>()
where
T: Bar,
{}
and never
fn foo<T: Bar>() {}
How can I enforce that in my project?
Anerdw
2
I think you're looking for inline_trait_bounds in clippy::restriction:
Schard
3
Thank you. How did I miss that? 
Only lints functions and method declararions. Bounds on structs, enums, and impl blocks are not yet covered.
That's not ideal, but I guess it's the best I get with minimal effort.