]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/generic-associated-types/issue-47206-where-clause.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-47206-where-clause.stderr
index c9c1a4753b0dd4131b00addf78f7d70a10d1a057..bc5c40ff029f9d3c8cf71e51c875a48d73675c6d 100644 (file)
@@ -1,10 +1,12 @@
-error: type-generic associated types are not yet implemented
-  --> $DIR/issue-47206-where-clause.rs:7:5
+error[E0276]: impl has stricter requirements than trait
+  --> $DIR/issue-47206-where-clause.rs:13:5
    |
 LL |     type Assoc3<T>;
-   |     ^^^^^^^^^^^^^^^
-   |
-   = note: for more information, see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
+   |     --------------- definition of `Assoc3` from trait
+...
+LL |     type Assoc3<T> where T: Iterator = Vec<T>;
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::iter::Iterator`
 
 error: aborting due to previous error
 
+For more information about this error, try `rustc --explain E0276`.