fork/rust

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

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

master
467 B11 linesraw
1error: pointers cannot be cast to integers during const eval
2  --> $DIR/issue-17458.rs:1:28
3   |
4LL | static X: usize = unsafe { core::ptr::null::<usize>() 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