3e1596d8c9
Fixes #178
8 lines
185 B
Rust
8 lines
185 B
Rust
// error-pattern: overflowing math
|
|
fn main() {
|
|
let v = [0i8; 4];
|
|
let x = &v as *const i8;
|
|
let x = unsafe { x.offset(-1) };
|
|
panic!("this should never print: {:?}", x);
|
|
}
|