1
Fork 0

Walk un-shifted nested impl Trait in trait when setting up default trait method assumptions

This commit is contained in:
Michael Goulet 2023-03-16 23:27:09 +00:00
parent da7c50c089
commit 9f80c75703
2 changed files with 32 additions and 16 deletions

View file

@ -13,4 +13,10 @@ trait Trait {
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() {}