1
Fork 0

bless all the things

This commit is contained in:
Ralf Jung 2019-07-25 09:11:53 +02:00
parent 5fa443ddee
commit f06a274880
3 changed files with 7 additions and 9 deletions

View file

@ -1,4 +1,4 @@
fn main() {
let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
//~^ ERROR it is undefined behavior to use this value
//~^ ERROR evaluation of constant value failed
}