]> git.lizzy.rs Git - rust.git/blob - tests/fail/extern_static_wrong_size.stderr
check for extern static size mismatches
[rust.git] / tests / fail / extern_static_wrong_size.stderr
1 error: unsupported operation: `extern` static `environ` from crate `extern_static_wrong_size` has been declared with a size of 1 bytes and alignment of 1 bytes, but Miri emulates it via an extern static shim with a size of N bytes and alignment of N bytes
2   --> $DIR/extern_static_wrong_size.rs:LL:CC
3    |
4 LL |     let _val = unsafe { environ };
5    |                         ^^^^^^^ `extern` static `environ` from crate `extern_static_wrong_size` has been declared with a size of 1 bytes and alignment of 1 bytes, but Miri emulates it via an extern static shim with a size of N bytes and alignment of N bytes
6    |
7    = help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
8    = note: backtrace:
9    = note: inside `main` at $DIR/extern_static_wrong_size.rs:LL:CC
10
11 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
12
13 error: aborting due to previous error
14