summary refs log tree commit diff
path: root/tests/ui/consts/issue-miri-1910.stderr
blob: 140b1861bb42a0938f03da6ba615bd6ebb0d1a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0080]: unable to turn pointer into integer
  --> $DIR/issue-miri-1910.rs:7:5
   |
LL |     (&foo as *const _ as *const u8).add(one_and_a_half_pointers).read();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `C` failed here
   |
   = help: this code performed an operation that depends on the underlying bytes representing a pointer
   = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported

error: aborting due to 1 previous error

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