1 error[E0271]: type mismatch resolving `for<'a> <<T as Baz>::Baa<'a> as std::ops::Deref>::Target == <<T as Baz>::Quux<'a> as Foo>::Bar<'a, 'static>`
2 --> $DIR/construct_with_other_type.rs:19:9
4 LL | impl<T> Baz for T where T: Foo {
5 | ^^^ expected type parameter `T`, found associated type
7 = note: expected associated type `<T as Foo>::Bar<'_, 'static>`
8 found associated type `<<T as Baz>::Quux<'_> as Foo>::Bar<'_, 'static>`
9 = note: you might be missing a type parameter or trait bound
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0271`.