LL | static VOID2: Void = unsafe { std::mem::transmute(()) };
| ^^^^^^^^^^^^^^^^^^^^^^^ transmuting to uninhabited type
-error[E0080]: could not evaluate static initializer
- --> $DIR/uninhabited-static.rs:16:32
- |
-LL | static NEVER2: Void = unsafe { std::mem::transmute(()) };
- | ^^^^^^^^^^^^^^^^^^^^^^^ transmuting to uninhabited type
-
warning: the type `Void` does not permit zero-initialization
--> $DIR/uninhabited-static.rs:12:31
|
= note: `#[warn(invalid_value)]` on by default
= note: enums with no variants have no valid value
+error[E0080]: could not evaluate static initializer
+ --> $DIR/uninhabited-static.rs:16:32
+ |
+LL | static NEVER2: Void = unsafe { std::mem::transmute(()) };
+ | ^^^^^^^^^^^^^^^^^^^^^^^ transmuting to uninhabited type
+
warning: the type `Void` does not permit zero-initialization
--> $DIR/uninhabited-static.rs:16:32
|