blob: 817a4d7dbbe89b8256e49c317c0b54d00b992d55 [file] [log] [blame]
// 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<Type = impl Sized + '_>;
}
trait Trait2 {
type Type;
fn method(&self) -> impl Trait2<Type = impl Trait2<Type = impl Sized + '_> + '_>;
}
fn main() {}