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