1 error[E0080]: could not evaluate static initializer
2 --> $DIR/ptr_arith.rs:8:13
4 LL | let x = &0 as *const _ as usize;
5 | ^^^^^^^^^^^^^^^^^^^^^^^ exposing pointers is not possible at compile-time
7 error[E0080]: could not evaluate static initializer
8 --> $DIR/ptr_arith.rs:16:14
11 | ^ unable to turn pointer into raw bytes
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
16 warning: skipping const checks
18 help: skipping check that does not even have a feature gate
19 --> $DIR/ptr_arith.rs:8:13
21 LL | let x = &0 as *const _ as usize;
22 | ^^^^^^^^^^^^^^^^^^^^^^^
24 error: aborting due to 2 previous errors; 1 warning emitted
26 For more information about this error, try `rustc --explain E0080`.