//@ run-rustfix #![allow(dead_code)] #![allow(unused_variables)] trait Get { type Value; fn get(&self) -> ::Value; } trait Other { fn uhoh(&self, foo: U, bar: ::Value) where Self: Sized, Self: Get, Self: Get {} //~^ ERROR the trait bound `Self: Get` is not satisfied //~| ERROR the trait bound `Self: Get` is not satisfied } fn main() {}