fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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`.