// fail-check #![feature(inherent_associated_types)] #![allow(incomplete_features)] // Test if we use the correct `ParamEnv` when proving obligations. fn parameterized() { let _: Container::Proj = String::new(); //~ ERROR the associated type `Proj` exists for `Container`, but its trait bounds were not satisfied } struct Container(T); impl Container { type Proj = String; } fn main() {}