2021-06-27 06:48:01 -05:00
error[E0080]: evaluation of constant value failed
2024-11-01 16:19:42 -05:00
--> $DIR/copy-intrinsic.rs:34:5
2021-06-15 09:47:31 -05:00
|
2024-05-09 05:35:11 -05:00
LL | copy_nonoverlapping(0x100 as *const i32, dangle, 1);
2024-07-27 11:09:50 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: expected a pointer to 4 bytes of memory, but got 0x100[noalloc] which is a dangling pointer (it has no provenance)
2021-06-15 09:47:31 -05:00
2021-06-27 06:48:01 -05:00
error[E0080]: evaluation of constant value failed
2024-11-01 16:19:42 -05:00
--> $DIR/copy-intrinsic.rs:43:5
2021-06-15 09:47:31 -05:00
|
2024-05-09 05:35:11 -05:00
LL | copy_nonoverlapping(dangle, 0x100 as *mut i32, 1);
2024-07-27 11:09:50 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: expected a pointer to 4 bytes of memory, but got ALLOC0+0x28 which is at or beyond the end of the allocation of size 4 bytes
2021-06-15 09:47:31 -05:00
2021-06-27 06:48:01 -05:00
error[E0080]: evaluation of constant value failed
2024-11-01 16:19:42 -05:00
--> $DIR/copy-intrinsic.rs:50:5
2021-06-15 09:47:31 -05:00
|
2021-06-27 06:48:01 -05:00
LL | copy(&x, &mut y, 1usize << (mem::size_of::<usize>() * 8 - 1));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow computing total size of `copy`
2021-06-15 09:47:31 -05:00
2021-06-27 06:48:01 -05:00
error[E0080]: evaluation of constant value failed
2024-11-01 16:19:42 -05:00
--> $DIR/copy-intrinsic.rs:56:5
2021-06-15 09:47:31 -05:00
|
2021-06-27 06:48:01 -05:00
LL | copy_nonoverlapping(&x, &mut y, 1usize << (mem::size_of::<usize>() * 8 - 1));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow computing total size of `copy_nonoverlapping`
2021-06-15 09:47:31 -05:00
error: aborting due to 4 previous errors
2021-06-27 06:48:01 -05:00
For more information about this error, try `rustc --explain E0080`.