// Regression test for #132826. // Make sure we don't try to resolve the variable `K1` in the generics of the impl // (which only has `K2`). pub trait MyTrait { type Item; } impl MyTrait for Vec { type Item = Vec; } impl From> for as MyTrait>::Item {} //~^ ERROR only traits defined in the current crate can be implemented for arbitrary types fn main() {}