You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
20
32
= note: the raw bytes of the constant (size: 0, align: 1) {}
21
33
22
-
warning: the type `!` does not permit zero-initialization
23
-
--> $DIR/validate_uninhabited_zsts.rs:4:14
24
-
|
25
-
LL | unsafe { std::mem::transmute(()) }
26
-
| ^^^^^^^^^^^^^^^^^^^^^^^
27
-
| |
28
-
| this code causes undefined behavior when executed
29
-
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
30
-
|
31
-
= note: `#[warn(invalid_value)]` on by default
32
-
= note: the `!` type has no valid value
33
-
34
34
warning: the type `empty::Empty` does not permit zero-initialization
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
20
32
= note: the raw bytes of the constant (size: 0, align: 1) {}
21
33
22
-
warning: the type `!` does not permit zero-initialization
23
-
--> $DIR/validate_uninhabited_zsts.rs:4:14
24
-
|
25
-
LL | unsafe { std::mem::transmute(()) }
26
-
| ^^^^^^^^^^^^^^^^^^^^^^^
27
-
| |
28
-
| this code causes undefined behavior when executed
29
-
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
30
-
|
31
-
= note: `#[warn(invalid_value)]` on by default
32
-
= note: the `!` type has no valid value
33
-
34
34
warning: the type `empty::Empty` does not permit zero-initialization
0 commit comments