// check-pass #![feature(return_position_impl_trait_in_trait)] trait Trait { type Type; // Check that we're adjusting bound vars correctly when installing the default // method projection assumptions. fn method(&self) -> impl Trait; } trait Trait2 { type Type; fn method(&self) -> impl Trait2 + '_>; } fn main() {}