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.
known-bug
1 parent 2fc136b commit 97fa7f0Copy full SHA for 97fa7f0
tests/ui/codegen/issue-107975-pointer-inequality.rs
@@ -0,0 +1,17 @@
1
+// run-pass
2
+// known-bug: #107975
3
+fn main() {
4
+ let a: *const u8;
5
+ let b: *const u8;
6
+ {
7
+ let v: [u8; 16] = [core::hint::black_box(0); 16];
8
+ a = &(v[0]);
9
+ }
10
11
12
+ b = &(v[0]);
13
14
+ assert_ne!(a, b);
15
+ println!("{a:?} {b:?}");
16
+ assert_eq!(a, b);
17
+}
0 commit comments