fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: could not evaluate static initializer 2 --> $DIR/ptr_arith.rs:8:13 3 | 4LL | let x = &0 as *const _ as usize; 5 | ^^^^^^^^^^^^^^^^^^^^^^^ exposing pointers is not possible at compile-time 6 7error[E0080]: could not evaluate static initializer 8 --> $DIR/ptr_arith.rs:16:14 9 | 10LL | let _v = x + 0; 11 | ^ unable to turn pointer into integer 12 | 13 = help: this code performed an operation that depends on the underlying bytes representing a pointer 14 = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported 15 16warning: skipping const checks 17 | 18help: skipping check that does not even have a feature gate 19 --> $DIR/ptr_arith.rs:8:13 20 | 21LL | let x = &0 as *const _ as usize; 22 | ^^^^^^^^^^^^^^^^^^^^^^^ 23 24error: aborting due to 2 previous errors; 1 warning emitted 25 26For more information about this error, try `rustc --explain E0080`.