fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: evaluation of constant value failed 2 --> $DIR/copy-intrinsic.rs:27:5 3 | 4LL | copy_nonoverlapping(0x100 as *const i32, dangle, 0); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: alloc5 has size 4, so pointer at offset 40 is out-of-bounds 6 7error[E0080]: evaluation of constant value failed 8 --> $DIR/copy-intrinsic.rs:34:5 9 | 10LL | copy_nonoverlapping(dangle, 0x100 as *mut i32, 0); 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: alloc7 has size 4, so pointer at offset 40 is out-of-bounds 12 13error[E0080]: evaluation of constant value failed 14 --> $DIR/copy-intrinsic.rs:41:5 15 | 16LL | copy(&x, &mut y, 1usize << (mem::size_of::<usize>() * 8 - 1)); 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow computing total size of `copy` 18 19error[E0080]: evaluation of constant value failed 20 --> $DIR/copy-intrinsic.rs:47:5 21 | 22LL | copy_nonoverlapping(&x, &mut y, 1usize << (mem::size_of::<usize>() * 8 - 1)); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow computing total size of `copy_nonoverlapping` 24 25error: aborting due to 4 previous errors 26 27For more information about this error, try `rustc --explain E0080`.