about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail/const-ub-checks.stderr
blob: df2d5653d2db6b31875a6d6f07f9573e11e32d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error[E0080]: accessing memory based on pointer with alignment ALIGN, but alignment ALIGN is required
  --> tests/fail/const-ub-checks.rs:LL:CC
   |
LL |     ptr.read();
   |     ^^^^^^^^^^ evaluation of `UNALIGNED_READ` failed here

note: erroneous constant encountered
  --> tests/fail/const-ub-checks.rs:LL:CC
   |
LL |     let _x = UNALIGNED_READ;
   |              ^^^^^^^^^^^^^^

note: erroneous constant encountered
  --> tests/fail/const-ub-checks.rs:LL:CC
   |
LL |     let _x = UNALIGNED_READ;
   |              ^^^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 1 previous error

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