]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/issue-57961.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-57961.rs
index 472886c9caa23f0ff11101c545c83b6a4b591406..24b3a045856a6accd5656b25a2531e4afae89465 100644 (file)
@@ -8,7 +8,7 @@ trait Foo {
 
 impl Foo for () {
     type Bar = std::vec::IntoIter<u32>;
-    //~^ ERROR type mismatch resolving `<std::vec::IntoIter<u32> as Iterator>::Item == X
+    //~^ ERROR expected `std::vec::IntoIter<u32>` to be an iterator that yields `X`, but it yields `u32`
 }
 
 fn incoherent() {