fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
428 B11 linesraw
1error: pointers cannot be cast to integers during const eval
2  --> $DIR/match-test-ptr-null.rs:6:15
3   |
4LL |         match &1 as *const i32 as usize {
5   |               ^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: at compile-time, pointers do not have an integer value
8   = note: avoiding this restriction via `transmute`, `union`, or raw pointers leads to compile-time undefined behavior
9
10error: aborting due to previous error
11