]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/miri_unleashed/ptr_arith.stderr
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / ptr_arith.stderr
CommitLineData
f9f354fc
XL
1error[E0080]: could not evaluate static initializer
2 --> $DIR/ptr_arith.rs:9:14
3 |
4LL | let _v = x == x;
5 | ^^^^^^ "pointer arithmetic or comparison" needs an rfc before being allowed inside constants
6
7error[E0080]: could not evaluate static initializer
8 --> $DIR/ptr_arith.rs:16:14
9 |
10LL | let _v = x + 0;
11 | ^^^^^ "pointer-to-integer cast" needs an rfc before being allowed inside constants
12
13warning: skipping const checks
14 |
15help: skipping check for `const_compare_raw_pointers` feature
16 --> $DIR/ptr_arith.rs:9:14
17 |
18LL | let _v = x == x;
19 | ^^^^^^
20help: skipping check that does not even have a feature gate
21 --> $DIR/ptr_arith.rs:15:20
22 |
23LL | let x: usize = std::mem::transmute(&0);
24 | ^^^^^^^^^^^^^^^^^^^^^^^
25
26error: aborting due to 2 previous errors; 1 warning emitted
27
28For more information about this error, try `rustc --explain E0080`.