1 // error-pattern: must be in-bounds at offset 5, but is outside bounds of alloc
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);