]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/construct_with_other_type.stderr
bootstrap: Configurable musl libdir
[rust.git] / src / test / ui / generic-associated-types / construct_with_other_type.stderr
index bad746f7ef12181ae0b728e9ed12bf716e22e640..b9468b3330b44e5b4a794fe2a7b2824b837dbe34 100644 (file)
@@ -2,11 +2,16 @@ error[E0271]: type mismatch resolving `for<'a> <<T as Baz>::Baa<'a> as std::ops:
   --> $DIR/construct_with_other_type.rs:19:9
    |
 LL | impl<T> Baz for T where T: Foo {
-   |         ^^^ expected type parameter `T`, found associated type
+   |      -  ^^^ expected type parameter `T`, found associated type
+   |      |
+   |      this type parameter
    |
    = note: expected associated type `<T as Foo>::Bar<'_, 'static>`
               found associated type `<<T as Baz>::Quux<'_> as Foo>::Bar<'_, 'static>`
-   = note: you might be missing a type parameter or trait bound
+help: consider further restricting this bound
+   |
+LL | impl<T> Baz for T where T: Foo + Baz<Quux = T> {
+   |                                ^^^^^^^^^^^^^^^
 
 error: aborting due to previous error