about summary refs log tree commit diff
path: root/tests/ui/consts/missing_span_in_backtrace.stderr
blob: 55dde6358286177c9464e959e4d73dcc4e69ee49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0080]: memory access failed: attempting to access 1 byte, but got ALLOC0+0x4 which is at or beyond the end of the allocation of size 4 bytes
  --> $DIR/missing_span_in_backtrace.rs:16:9
   |
16 | /         ptr::swap_nonoverlapping(
17 | |             &mut x1 as *mut _ as *mut MaybeUninit<u8>,
18 | |             &mut x2 as *mut _ as *mut MaybeUninit<u8>,
19 | |             10,
20 | |         );
   | |_________^ evaluation of `X` failed inside this call
   |
note: inside `swap_nonoverlapping::compiletime::<MaybeUninit<u8>>`
  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
note: inside `std::ptr::swap_nonoverlapping_const::<MaybeUninit<u8>>`
  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
note: inside `std::ptr::copy_nonoverlapping::<MaybeUninit<u8>>`
  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0080`.