about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/read_partial_ptr.stderr
blob: 196606c77a37f0a34013e009e5a5736683d307c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
error[E0080]: unable to read parts of a pointer from memory at ALLOC0
  --> $DIR/read_partial_ptr.rs:10:13
   |
LL |     let x = *p;
   |             ^^ evaluation of `PARTIAL_OVERWRITE` 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[E0080]: unable to read parts of a pointer from memory at ALLOC1
  --> $DIR/read_partial_ptr.rs:23:13
   |
LL |     let x = *p;
   |             ^^ evaluation of `PTR_BYTES_SWAP` 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[E0080]: unable to read parts of a pointer from memory at ALLOC2
  --> $DIR/read_partial_ptr.rs:34:13
   |
LL |     let x = *p;
   |             ^^ evaluation of `PTR_BYTES_REPEAT` 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[E0080]: unable to read parts of a pointer from memory at ALLOC3
  --> $DIR/read_partial_ptr.rs:46:13
   |
LL |     let x = *p;
   |             ^^ evaluation of `PTR_BYTES_MIX` 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 4 previous errors

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