fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
824 B21 linesraw
1error[E0658]: casting pointers to integers in constants is unstable
2  --> $DIR/cast-ptr-to-int-const.rs:5:9
3   |
4LL |         main as u32
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[E0658]: casting pointers to integers in constants is unstable
11  --> $DIR/cast-ptr-to-int-const.rs:9:9
12   |
13LL |         &Y as *const u32 as u32
14   |         ^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = note: for more information, see https://github.com/rust-lang/rust/issues/51910
17   = help: add `#![feature(const_raw_ptr_to_usize_cast)]` to the crate attributes to enable
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0658`.