1 error[E0271]: type mismatch resolving `<dyn Trait<B = B, A = A> as SuperTrait>::A == B`
2 --> $DIR/enforce-supertrait-projection.rs:9:17
4 LL | fn transmute<A, B>(x: A) -> B {
5 | - - expected type parameter
8 LL | foo::<A, B, dyn Trait<A = A, B = B>>(x)
9 | ^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `B`, found type parameter `A`
11 = note: expected type parameter `B`
12 found type parameter `A`
13 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
14 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
15 note: required by a bound in `foo`
16 --> $DIR/enforce-supertrait-projection.rs:15:8
18 LL | fn foo<A, B, T: ?Sized>(x: T::A) -> B
19 | --- required by a bound in this
22 | ^^^^^^^^^^^^ required by this bound in `foo`
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0271`.