2 #![feature(const_transmute)]
5 unsafe { std::mem::transmute(()) }
6 //~^ ERROR evaluation of constant value failed
7 //~| WARN the type `!` does not permit zero-initialization [invalid_value]
10 #[derive(Clone, Copy)]
14 const FOO
: [Empty
; 3] = [foo(); 3];
15 //~^ WARN any use of this value will cause an error
17 const BAR
: [Empty
; 3] = [unsafe { std::mem::transmute(()) }
; 3];
18 //~^ ERROR it is undefined behavior to use this value
19 //~| WARN the type `Empty` does not permit zero-initialization