1 // error-pattern: pointer computed at offset 5, outside bounds of allocation
4 let x = &v as *const i8;
5 // The error is inside another function, so we cannot match it by line
6 let x = unsafe { x.offset(5) };
7 panic!("this should never print: {:?}", x);