about summary refs log tree commit diff
path: root/src/test/compile-fail/huge-array-simple.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-01 00:15:09 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-01 02:56:08 +0200
commit1973f7ebe5c67ef9ed57f7a64781d13868a70d3d (patch)
treeb4699326b03d8cc173746f5174aa8ee7db5a808f /src/test/compile-fail/huge-array-simple.rs
parent1f5e45b76961d54e3b825c3c6af6b6e02504d2be (diff)
downloadrust-1973f7ebe5c67ef9ed57f7a64781d13868a70d3d.tar.gz
rust-1973f7ebe5c67ef9ed57f7a64781d13868a70d3d.zip
Fixes to compile-fail error messages post-rebase.
Diffstat (limited to 'src/test/compile-fail/huge-array-simple.rs')
-rw-r--r--src/test/compile-fail/huge-array-simple.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/huge-array-simple.rs b/src/test/compile-fail/huge-array-simple.rs
index 105f885f287..e6446304177 100644
--- a/src/test/compile-fail/huge-array-simple.rs
+++ b/src/test/compile-fail/huge-array-simple.rs
@@ -8,9 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern: too big for the current
 #![allow(exceeding_bitshifts)]
 
 fn main() {
-   let fat : [u8; (1<<61)+(1<<31)] = [0; (1u64<<61) as usize +(1u64<<31) as usize];
+    let fat : [u8; (1<<61)+(1<<31)] =
+        //~^ ERROR array length constant evaluation error: attempted left shift with overflow
+        [0; (1u64<<61) as usize +(1u64<<31) as usize];
+    //~^ ERROR expected constant integer for repeat count, but attempted left shift with overflow
 }