2023-02-28 15:34:04 -06:00
|
|
|
// check-pass
|
2023-03-08 08:18:38 -06:00
|
|
|
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
|
|
|
|
// revisions: current next
|
2023-02-28 15:34:04 -06:00
|
|
|
|
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
|
|
//~^ WARN the feature `return_position_impl_trait_in_trait` is incomplete
|
|
|
|
|
|
|
|
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 + '_>;
|
|
|
|
}
|
|
|
|
|
2023-03-16 18:27:09 -05:00
|
|
|
trait Trait2 {
|
|
|
|
type Type;
|
|
|
|
|
|
|
|
fn method(&self) -> impl Trait2<Type = impl Trait2<Type = impl Sized + '_> + '_>;
|
|
|
|
}
|
|
|
|
|
2023-02-28 15:34:04 -06:00
|
|
|
fn main() {}
|