about summary refs log tree commit diff
path: root/src/test/ui/array_const_index-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/array_const_index-1.rs')
-rw-r--r--src/test/ui/array_const_index-1.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/array_const_index-1.rs b/src/test/ui/array_const_index-1.rs
index 66739d308a7..0a49348761c 100644
--- a/src/test/ui/array_const_index-1.rs
+++ b/src/test/ui/array_const_index-1.rs
@@ -11,8 +11,9 @@
 const A: [i32; 0] = [];
 const B: i32 = A[1];
 //~^ index out of bounds: the len is 0 but the index is 1
-//~| ERROR this constant cannot be used
+//~| ERROR any use of this value will cause an error
+//~| ERROR any use of this value will cause an error
 
 fn main() {
-    let _ = B;
+    let _ = B; //~ ERROR erroneous constant used
 }