2018-07-12 11:10:39 -05:00
|
|
|
fn main() {
|
2018-07-17 06:46:48 -05:00
|
|
|
let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
|
2018-09-04 05:26:21 -05:00
|
|
|
//~^ ERROR it is undefined behavior to use this value
|
2018-07-12 11:10:39 -05:00
|
|
|
}
|