error[E0271]: type mismatch resolving `::Assoc == i32` --> $DIR/param-candidate-shadows-project.rs:27:19 | LL | require_bar::(); | ^ types differ | note: required for `T` to implement `Bar` --> $DIR/param-candidate-shadows-project.rs:13:9 | LL | impl Bar for T where T: Foo {} | ^^^ ^ ----------- unsatisfied trait bound introduced here note: required by a bound in `require_bar` --> $DIR/param-candidate-shadows-project.rs:15:19 | LL | fn require_bar() {} | ^^^ required by this bound in `require_bar` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0271`.