fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0658]: casting pointers to integers in constants is unstable 2 --> $DIR/match-test-ptr-null.rs:6:15 3 | 4LL | match &1 as *const i32 as usize { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: for more information, see https://github.com/rust-lang/rust/issues/51910 8 = help: add `#![feature(const_raw_ptr_to_usize_cast)]` to the crate attributes to enable 9 10error[E0019]: constant contains unimplemented expression type 11 --> $DIR/match-test-ptr-null.rs:6:15 12 | 13LL | match &1 as *const i32 as usize { 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 15 16error[E0019]: constant contains unimplemented expression type 17 --> $DIR/match-test-ptr-null.rs:10:13 18 | 19LL | 0 => 42, 20 | ^ 21 22error[E0080]: evaluation of constant value failed 23 --> $DIR/match-test-ptr-null.rs:6:15 24 | 25LL | match &1 as *const i32 as usize { 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^ "pointer-to-integer cast" needs an rfc before being allowed inside constants 27 28error: aborting due to 4 previous errors 29 30Some errors have detailed explanations: E0019, E0080, E0658. 31For more information about an error, try `rustc --explain E0019`.