]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/unaligned_pointers/intptrcast_alignment_check.stderr
Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472
[rust.git] / src / tools / miri / tests / fail / unaligned_pointers / intptrcast_alignment_check.stderr
1 error: Undefined Behavior: accessing memory with alignment ALIGN, but alignment ALIGN is required
2   --> $DIR/intptrcast_alignment_check.rs:LL:CC
3    |
4 LL |     unsafe { *u16_ptr = 2 };
5    |              ^^^^^^^^^^^^ accessing memory with alignment ALIGN, but alignment ALIGN is required
6    |
7    = help: this usually indicates that your program performed an invalid operation and caused Undefined Behavior
8    = help: but due to `-Zmiri-symbolic-alignment-check`, alignment errors can also be false positives
9    = note: BACKTRACE:
10    = note: inside `main` at $DIR/intptrcast_alignment_check.rs:LL:CC
11
12 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
13
14 error: aborting due to previous error
15