error[E0220]: associated type `Pr` not found for `S` in the current scope --> $DIR/not-found-self-type-differs-shadowing-trait-item.rs:28:23 | LL | struct S(T); | ----------- associated item `Pr` not found for this struct ... LL | let _: S::::Pr = (); | ^^ associated item not found in `S` | = note: the associated type was found for - `S<()>` error: aborting due to previous error For more information about this error, try `rustc --explain E0220`.