2016-09-22 08:22:00 -05:00
|
|
|
fn main() {
|
|
|
|
let x = &() as *const () as *const i32;
|
2018-07-15 04:21:56 -05:00
|
|
|
let _ = unsafe { *x }; //~ ERROR constant evaluation error
|
2018-05-09 10:45:16 -05:00
|
|
|
//~^ NOTE tried to access memory with alignment 1, but alignment 4 is required
|
2016-09-22 08:22:00 -05:00
|
|
|
}
|