We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2588ce1 commit 069805cCopy full SHA for 069805c
tests/ui/mir/alignment/place_without_read.rs
@@ -0,0 +1,9 @@
1
+// run-pass
2
+// compile-flags: -C debug-assertions
3
+
4
+fn main() {
5
+ let ptr = 1 as *const u16;
6
+ unsafe {
7
+ let _ = *ptr;
8
+ }
9
+}
0 commit comments