]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-28098.rs
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-28098.rs
index c4addaccefc1045ec2045563331e1dd0e7fc5326..62a90d90d12defde59aa800c5c601defe8482b48 100644 (file)
@@ -1,6 +1,7 @@
 fn main() {
     let _ = Iterator::next(&mut ());
     //~^ ERROR `()` is not an iterator
+    //~| ERROR `()` is not an iterator
 
     for _ in false {}
     //~^ ERROR `bool` is not an iterator
@@ -16,6 +17,7 @@ pub fn other() {
 
     let _ = Iterator::next(&mut ());
     //~^ ERROR `()` is not an iterator
+    //~| ERROR `()` is not an iterator
 
     let _ = Iterator::next(&mut ());
     //~^ ERROR `()` is not an iterator