about summary refs log tree commit diff
path: root/src/test/compile-fail/range-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/range-1.rs')
-rw-r--r--src/test/compile-fail/range-1.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/compile-fail/range-1.rs b/src/test/compile-fail/range-1.rs
index 826e4283ef8..b839902c683 100644
--- a/src/test/compile-fail/range-1.rs
+++ b/src/test/compile-fail/range-1.rs
@@ -17,12 +17,11 @@ pub fn main() {
 
     // Bool => does not implement iterator.
     for i in false..true {}
-    //~^ ERROR the trait
-    //~^^ ERROR the trait
-    //~^^^ ERROR the trait
+    //~^ ERROR E0277
 
     // Unsized type.
     let arr: &[_] = &[1, 2, 3];
     let range = *arr..;
     //~^ ERROR the trait `core::marker::Sized` is not implemented
+    //~| ERROR the trait `core::marker::Sized` is not implemented
 }