]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/miri_unleashed/ptr_arith.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / ptr_arith.stderr
1 error[E0080]: could not evaluate static initializer
2 --> $DIR/ptr_arith.rs:9:14
3 |
4 LL | let _v = x == x;
5 | ^^^^^^ "pointer arithmetic or comparison" needs an rfc before being allowed inside constants
6
7 error[E0080]: could not evaluate static initializer
8 --> $DIR/ptr_arith.rs:16:14
9 |
10 LL | let _v = x + 0;
11 | ^^^^^ cannot cast pointer to integer because it was not created by cast from integer
12
13 warning: skipping const checks
14 |
15 help: skipping check that does not even have a feature gate
16 --> $DIR/ptr_arith.rs:9:14
17 |
18 LL | let _v = x == x;
19 | ^^^^^^
20
21 error: aborting due to 2 previous errors; 1 warning emitted
22
23 For more information about this error, try `rustc --explain E0080`.