|
1 | 1 | error[E0658]: dereferencing raw pointers in constant functions is unstable (see issue #51911)
|
2 |
| - --> $DIR/min_const_fn_unsafe.rs:54:77 |
| 2 | + --> $DIR/min_const_fn_unsafe.rs:60:77 |
3 | 3 | |
|
4 | 4 | LL | const fn bad_const_fn_deref_raw(x: *mut usize) -> &'static usize { unsafe { &*x } } //~ is unsafe
|
5 | 5 | | ^^^
|
6 | 6 | |
|
7 | 7 | = help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
|
8 | 8 |
|
9 | 9 | error[E0658]: dereferencing raw pointers in constant functions is unstable (see issue #51911)
|
10 |
| - --> $DIR/min_const_fn_unsafe.rs:57:70 |
| 10 | + --> $DIR/min_const_fn_unsafe.rs:63:70 |
11 | 11 | |
|
12 | 12 | LL | const unsafe fn bad_const_unsafe_deref_raw(x: *mut usize) -> usize { *x }
|
13 | 13 | | ^^
|
14 | 14 | |
|
15 | 15 | = help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
|
16 | 16 |
|
17 | 17 | error[E0658]: dereferencing raw pointers in constant functions is unstable (see issue #51911)
|
18 |
| - --> $DIR/min_const_fn_unsafe.rs:60:83 |
| 18 | + --> $DIR/min_const_fn_unsafe.rs:66:83 |
19 | 19 | |
|
20 | 20 | LL | const unsafe fn bad_const_unsafe_deref_raw_ref(x: *mut usize) -> &'static usize { &*x }
|
21 | 21 | | ^^^
|
22 | 22 | |
|
23 | 23 | = help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
|
24 | 24 |
|
25 | 25 | error[E0658]: unions in const fn are unstable (see issue #51909)
|
26 |
| - --> $DIR/min_const_fn_unsafe.rs:67:5 |
| 26 | + --> $DIR/min_const_fn_unsafe.rs:73:5 |
27 | 27 | |
|
28 | 28 | LL | Foo { x: () }.y
|
29 | 29 | | ^^^^^^^^^^^^^^^
|
30 | 30 | |
|
31 | 31 | = help: add #![feature(const_fn_union)] to the crate attributes to enable
|
32 | 32 |
|
33 | 33 | error[E0133]: dereference of raw pointer is unsafe and requires unsafe function or block
|
34 |
| - --> $DIR/min_const_fn_unsafe.rs:54:77 |
| 34 | + --> $DIR/min_const_fn_unsafe.rs:60:77 |
35 | 35 | |
|
36 | 36 | LL | const fn bad_const_fn_deref_raw(x: *mut usize) -> &'static usize { unsafe { &*x } } //~ is unsafe
|
37 | 37 | | ^^^ dereference of raw pointer
|
|
0 commit comments