about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-fail/bug-2470-bounds-check-overflow.rs4
1 files changed, 2 insertions, 2 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 f3575963962..924b3dda149 100644
--- a/src/test/run-fail/bug-2470-bounds-check-overflow.rs
+++ b/src/test/run-fail/bug-2470-bounds-check-overflow.rs
@@ -9,7 +9,7 @@ fn main() {
     // huge).
 
     let x = ~[1u,2u,3u];
-    do vec::as_buf(x) |p, _len| {
+    do vec::as_imm_buf(x) |p, _len| {
         let base = p as uint;                     // base = 0x1230 say
         let idx = base / sys::size_of::<uint>();  // idx  = 0x0246 say
         error!("ov1 base = 0x%x", base);
@@ -21,4 +21,4 @@ fn main() {
         // This should fail.
         error!("ov1 0x%x",  x[idx]);
     }
-}
\ No newline at end of file
+}