Skip to content

Commit 069805c

Browse files
committed
Add an explicit test for let _ = *ptr
1 parent 2588ce1 commit 069805c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)