blob: 577853a4e911134f51f471c5a40c0b732dd86a7e (
plain)
1
2
3
4
5
6
7
8
9
10
|
// run-fail
// error-pattern:index out of bounds
// ignore-emscripten no processes
use std::mem::size_of;
fn main() {
let xs = [1, 2, 3];
xs[usize::MAX / size_of::<isize>() + 1];
}
|