|
1 | 1 | error[E0080]: could not evaluate static initializer |
2 | | - --> $DIR/ptr_arith.rs:10:14 |
| 2 | + --> $DIR/ptr_arith.rs:9:14 |
3 | 3 | | |
4 | 4 | LL | let _v = x == x; |
5 | 5 | | ^^^^^^ "pointer arithmetic or comparison" needs an rfc before being allowed inside constants |
6 | 6 |
|
7 | 7 | error[E0080]: could not evaluate static initializer |
8 | | - --> $DIR/ptr_arith.rs:17:14 |
| 8 | + --> $DIR/ptr_arith.rs:16:14 |
9 | 9 | | |
10 | 10 | LL | let _v = x + 0; |
11 | 11 | | ^^^^^ "pointer-to-integer cast" needs an rfc before being allowed inside constants |
12 | 12 |
|
13 | | -error[E0080]: could not evaluate static initializer |
14 | | - --> $DIR/ptr_arith.rs:24:14 |
15 | | - | |
16 | | -LL | let _v = core::intrinsics::offset(x, 0); |
17 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "calling intrinsic `offset`" needs an rfc before being allowed inside constants |
18 | | - |
19 | 13 | warning: skipping const checks |
20 | 14 | | |
21 | 15 | help: skipping check for `const_compare_raw_pointers` feature |
22 | | - --> $DIR/ptr_arith.rs:10:14 |
| 16 | + --> $DIR/ptr_arith.rs:9:14 |
23 | 17 | | |
24 | 18 | LL | let _v = x == x; |
25 | 19 | | ^^^^^^ |
26 | 20 | help: skipping check that does not even have a feature gate |
27 | | - --> $DIR/ptr_arith.rs:16:20 |
| 21 | + --> $DIR/ptr_arith.rs:15:20 |
28 | 22 | | |
29 | 23 | LL | let x: usize = std::mem::transmute(&0); |
30 | 24 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
31 | | -help: skipping check that does not even have a feature gate |
32 | | - --> $DIR/ptr_arith.rs:24:14 |
33 | | - | |
34 | | -LL | let _v = core::intrinsics::offset(x, 0); |
35 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
36 | 25 |
|
37 | | -error: aborting due to 3 previous errors; 1 warning emitted |
| 26 | +error: aborting due to 2 previous errors; 1 warning emitted |
38 | 27 |
|
39 | 28 | For more information about this error, try `rustc --explain E0080`. |
0 commit comments