blob: 368b80e66189555e193ec1687799a07f593372a8 [file]
// Regression test for issue #149910.
// We want to tell the user about param_env shadowing here.
trait Trait {
type Assoc;
}
impl<T> Trait for T {
type Assoc = T;
}
fn foo<T: Trait>(x: T) -> T::Assoc {
x
//~^ ERROR mismatched types
}
fn main() {}