// revisions: local alias #![feature(inherent_associated_types)] #![allow(incomplete_features)] struct Family(T); impl Family<()> { type Proj = (); } impl Family> { type Proj = Self; } #[cfg(alias)] type Alias = Family>::Proj; //[alias]~ ERROR associated type `Proj` not found for `Family>` fn main() { #[cfg(local)] let _: Family::Proj = (); //[local]~ ERROR associated type `Proj` not found for `Family` }