diff options
Diffstat (limited to 'src/test/run-fail/bug-2470-bounds-check-overflow-3.rs')
| -rw-r--r-- | src/test/run-fail/bug-2470-bounds-check-overflow-3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs b/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs index ec7fde17101..b7aff8d1be1 100644 --- a/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs +++ b/src/test/run-fail/bug-2470-bounds-check-overflow-3.rs @@ -25,8 +25,8 @@ fn main() { let idx = u64::MAX & !(u64::MAX >> 1_usize); println!("ov3 idx = 0x%8.8x%8.8x", - (idx >> 32) as uint, - idx as uint); + (idx >> 32) as usize, + idx as usize); // This should panic. println!("ov3 0x%x", x[idx]); |
