1
Fork 0

Do not consider elaborated projection predicates for objects in new solver

This commit is contained in:
Michael Goulet 2023-03-27 19:41:15 +00:00
parent cf32b9de1e
commit d62238d6a8
4 changed files with 37 additions and 9 deletions

View file

@ -10,7 +10,7 @@ trait Trait: SuperTrait<A = <Self as SuperTrait>::B> {}
fn transmute<A, B>(x: A) -> B {
foo::<A, B, dyn Trait<A = A, B = B>>(x)
//~^ ERROR type annotations needed: cannot satisfy `dyn Trait<A = A, B = B>: Trait`
//~^ ERROR the trait bound `dyn Trait<A = A, B = B>: Trait` is not satisfied
}
fn foo<A, B, T: ?Sized>(x: T::A) -> B