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/mod.rs:LL:COL 3 | 4 = note: dereferencing pointer failed: alloc5 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds 5 | 6note: inside `std::ptr::read::<u32>` 7 --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL 8note: inside `_READ` 9 --> $DIR/out_of_bounds_read.rs:10:33 10 | 11LL | const _READ: u32 = unsafe { ptr::read(PAST_END_PTR) }; 12 | ^^^^^^^^^^^^^^^^^^^^^^^ 13 14error[E0080]: evaluation of constant value failed 15 --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL 16 | 17 = note: dereferencing pointer failed: alloc5 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds 18 | 19note: inside `std::ptr::read::<u32>` 20 --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL 21note: inside `ptr::const_ptr::<impl *const u32>::read` 22 --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL 23note: inside `_CONST_READ` 24 --> $DIR/out_of_bounds_read.rs:11:39 25 | 26LL | const _CONST_READ: u32 = unsafe { PAST_END_PTR.read() }; 27 | ^^^^^^^^^^^^^^^^^^^ 28 29error[E0080]: evaluation of constant value failed 30 --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL 31 | 32 = note: dereferencing pointer failed: alloc5 has size 4, so pointer to 4 bytes starting at offset 4 is out-of-bounds 33 | 34note: inside `std::ptr::read::<u32>` 35 --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL 36note: inside `ptr::mut_ptr::<impl *mut u32>::read` 37 --> $SRC_DIR/core/src/ptr/mut_ptr.rs:LL:COL 38note: inside `_MUT_READ` 39 --> $DIR/out_of_bounds_read.rs:12:37 40 | 41LL | const _MUT_READ: u32 = unsafe { (PAST_END_PTR as *mut u32).read() }; 42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 43 44error: aborting due to 3 previous errors 45 46For more information about this error, try `rustc --explain E0080`.