1 error[E0658]: dereferencing raw pointers in constant functions is unstable
2 --> $DIR/min_const_fn_unsafe_bad.rs:1:77
4 LL | const fn bad_const_fn_deref_raw(x: *mut usize) -> &'static usize { unsafe { &*x } }
7 = note: see issue #51911 <https://github.com/rust-lang/rust/issues/51911> for more information
8 = help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
10 error[E0658]: dereferencing raw pointers in constant functions is unstable
11 --> $DIR/min_const_fn_unsafe_bad.rs:4:70
13 LL | const unsafe fn bad_const_unsafe_deref_raw(x: *mut usize) -> usize { *x }
16 = note: see issue #51911 <https://github.com/rust-lang/rust/issues/51911> for more information
17 = help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
19 error[E0658]: dereferencing raw pointers in constant functions is unstable
20 --> $DIR/min_const_fn_unsafe_bad.rs:7:83
22 LL | const unsafe fn bad_const_unsafe_deref_raw_ref(x: *mut usize) -> &'static usize { &*x }
25 = note: see issue #51911 <https://github.com/rust-lang/rust/issues/51911> for more information
26 = help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
28 error[E0658]: unions in const fn are unstable
29 --> $DIR/min_const_fn_unsafe_bad.rs:14:5
34 = note: see issue #51909 <https://github.com/rust-lang/rust/issues/51909> for more information
35 = help: add `#![feature(const_fn_union)]` to the crate attributes to enable
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0658`.