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
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
2
+
--> $DIR/const-eval-compare-ice-105047.rs:9:12
3
+
|
4
+
LL | if let RCZ = &raw const *&0 { }
5
+
| ^^^
6
+
|
7
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8
+
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
9
+
= note: `#[warn(pointer_structural_match)]` on by default
10
+
11
+
error: pointers cannot be reliably compared during const eval
12
+
--> $DIR/const-eval-compare-ice-105047.rs:9:12
13
+
|
14
+
LL | if let RCZ = &raw const *&0 { }
15
+
| ^^^
16
+
|
17
+
= note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
18
+
19
+
error: aborting due to 1 previous error; 1 warning emitted
warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
23
+
--> $DIR/const-eval-compare-ice-105047.rs:9:12
24
+
|
25
+
LL | if let RCZ = &raw const *&0 { }
26
+
| ^^^
27
+
|
28
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29
+
= note: for more information, see issue #120362 <https://github.com/rust-lang/rust/issues/120362>
30
+
= note: `#[warn(pointer_structural_match)]` on by default
0 commit comments