]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
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 | | ^^^^^ "pointer-to-integer cast" needs an rfc before being allowed inside constants | |
12 | ||
13 | warning: skipping const checks | |
14 | | | |
15 | help: skipping check for `const_compare_raw_pointers` feature | |
16 | --> $DIR/ptr_arith.rs:9:14 | |
17 | | | |
18 | LL | let _v = x == x; | |
19 | | ^^^^^^ | |
20 | help: skipping check that does not even have a feature gate | |
21 | --> $DIR/ptr_arith.rs:15:20 | |
22 | | | |
23 | LL | let x: usize = std::mem::transmute(&0); | |
24 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
25 | ||
26 | error: aborting due to 2 previous errors; 1 warning emitted | |
27 | ||
28 | For more information about this error, try `rustc --explain E0080`. |