#![warn(clippy::multiple_bound_locations)] fn ty(a: F) //~^ multiple_bound_locations where F: Sized, { } fn lifetime<'a, 'b: 'a, 'c>(a: &'b str, b: &'a str, c: &'c str) //~^ multiple_bound_locations where 'b: 'c, { } fn ty_pred() //~^ multiple_bound_locations where for<'a> F: Send + 'a, { } struct B; impl B { fn ty(a: F) //~^ multiple_bound_locations where F: Sized, { } fn lifetime<'a, 'b: 'a, 'c>(a: &'b str, b: &'a str, c: &'c str) //~^ multiple_bound_locations where 'b: 'c, { } fn ty_pred() //~^ multiple_bound_locations where for<'a> F: Send + 'a, { } } struct C(F); impl C { fn foo(_f: F) -> Self where F: std::fmt::Display, { todo!() } } fn main() {}