about summary refs log tree commit diff
path: root/src/test/run-fail/bug-2470-bounds-check-overflow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-fail/bug-2470-bounds-check-overflow.rs')
-rw-r--r--src/test/run-fail/bug-2470-bounds-check-overflow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-fail/bug-2470-bounds-check-overflow.rs b/src/test/run-fail/bug-2470-bounds-check-overflow.rs
index 84bd9ab5c76..710cecd99e2 100644
--- a/src/test/run-fail/bug-2470-bounds-check-overflow.rs
+++ b/src/test/run-fail/bug-2470-bounds-check-overflow.rs
@@ -8,7 +8,7 @@ fn main() {
     // address of the 0th cell in the array (even though the index is
     // huge).
 
-    let x = [1u,2u,3u];
+    let x = [1u,2u,3u]/~;
     vec::unpack_slice(x) {|p, _len|
         let base = p as uint;                     // base = 0x1230 say
         let idx = base / sys::size_of::<uint>();  // idx  = 0x0246 say