We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6fa358 commit 6aebb2cCopy full SHA for 6aebb2c
tests/ui/mir/alignment/misaligned-constant-gvn.rs
@@ -0,0 +1,8 @@
1
+//@ build-pass
2
+//@ compile-flags: -Zmir-opt-level=0 -Zmir-enable-passes=+GVN
3
+
4
+fn main() {
5
+ let variant: Option<u32> = None;
6
+ let transmuted: u64 = unsafe { std::mem::transmute(variant) };
7
+ println!("{transmuted}");
8
+}
0 commit comments