error[E0599]: no associated item named `C` found for struct `Fail` in the current scope --> $DIR/wrong-projection-self-ty-invalid-bivariant-arg2.rs:15:23 | LL | struct Fail, U>(T); | ---------------------------------- associated item `C` not found for this struct ... LL | Fail::::C | ^ associated item not found in `Fail` | = note: the associated item was found for - `Fail` error[E0271]: type mismatch resolving `::Assoc == u32` --> $DIR/wrong-projection-self-ty-invalid-bivariant-arg2.rs:15:5 | LL | Fail::::C | ^^^^^^^^^^^^^^^^ type mismatch resolving `::Assoc == u32` | note: expected this to be `u32` --> $DIR/wrong-projection-self-ty-invalid-bivariant-arg2.rs:5:18 | LL | type Assoc = T; | ^ note: required by a bound in `Fail` --> $DIR/wrong-projection-self-ty-invalid-bivariant-arg2.rs:8:21 | LL | struct Fail, U>(T); | ^^^^^^^^^ required by this bound in `Fail` error: aborting due to 2 previous errors Some errors have detailed explanations: E0271, E0599. For more information about an error, try `rustc --explain E0271`.