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