fork/rust

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

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

master
589 B16 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $SRC_DIR/core/src/ptr/non_null.rs:LL:COL
3   |
4   = note: dereferencing pointer failed: 0x1[noalloc] is a dangling pointer (it has no provenance)
5   |
6note: inside `NonNull::<u8>::as_ref::<'_>`
7  --> $SRC_DIR/core/src/ptr/non_null.rs:LL:COL
8note: inside `_`
9  --> $DIR/nonnull_as_ref_ub.rs:4:39
10   |
11LL | const _: () = assert!(42 == *unsafe { NON_NULL.as_ref() });
12   |                                       ^^^^^^^^^^^^^^^^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0080`.