]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-28098.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-28098.rs
index f565d24e1fd082809170801f889a335d0cee5a45..5dded2b1e16973e9cf259805273a349894313de7 100644 (file)
 
 fn main() {
     let _ = Iterator::next(&mut ());
-    //~^ ERROR the trait `core::iter::Iterator` is not implemented
+    //~^ ERROR `(): std::iter::Iterator` is not satisfied
 
     for _ in false {}
-    //~^ ERROR the trait `core::iter::Iterator` is not implemented
+    //~^ ERROR `bool: std::iter::Iterator` is not satisfied
 
     let _ = Iterator::next(&mut ());
-    //~^ ERROR the trait `core::iter::Iterator` is not implemented
+    //~^ ERROR `(): std::iter::Iterator` is not satisfied
 
     other()
 }
@@ -25,11 +25,11 @@ pub fn other() {
     // check errors are still reported globally
 
     let _ = Iterator::next(&mut ());
-    //~^ ERROR the trait `core::iter::Iterator` is not implemented
+    //~^ ERROR `(): std::iter::Iterator` is not satisfied
 
     let _ = Iterator::next(&mut ());
-    //~^ ERROR the trait `core::iter::Iterator` is not implemented
+    //~^ ERROR `(): std::iter::Iterator` is not satisfied
 
     for _ in false {}
-    //~^ ERROR the trait `core::iter::Iterator` is not implemented
+    //~^ ERROR `bool: std::iter::Iterator` is not satisfied
 }