|
1 |
| -error[E0723]: function pointers in const fn are unstable |
| 1 | +error[E0658]: function pointers cannot appear in constant functions |
2 | 2 | --> $DIR/cast_errors.rs:4:23
|
3 | 3 | |
|
4 | 4 | LL | const fn closure() -> fn() { || {} }
|
5 | 5 | | ^^^^
|
6 | 6 | |
|
7 | 7 | = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
|
8 |
| - = help: add `#![feature(const_fn)]` to the crate attributes to enable |
| 8 | + = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable |
9 | 9 |
|
10 |
| -error[E0723]: function pointers in const fn are unstable |
| 10 | +error[E0658]: function pointers cannot appear in constant functions |
11 | 11 | --> $DIR/cast_errors.rs:7:5
|
12 | 12 | |
|
13 | 13 | LL | (|| {}) as fn();
|
14 | 14 | | ^^^^^^^^^^^^^^^
|
15 | 15 | |
|
16 | 16 | = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
|
17 |
| - = help: add `#![feature(const_fn)]` to the crate attributes to enable |
| 17 | + = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable |
18 | 18 |
|
19 |
| -error[E0723]: function pointers in const fn are unstable |
| 19 | +error[E0658]: function pointers cannot appear in constant functions |
20 | 20 | --> $DIR/cast_errors.rs:10:28
|
21 | 21 | |
|
22 | 22 | LL | const fn reify(f: fn()) -> unsafe fn() { f }
|
23 | 23 | | ^^^^^^^^^^^
|
24 | 24 | |
|
25 | 25 | = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
|
26 |
| - = help: add `#![feature(const_fn)]` to the crate attributes to enable |
| 26 | + = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable |
27 | 27 |
|
28 |
| -error[E0723]: function pointers in const fn are unstable |
| 28 | +error[E0658]: function pointers cannot appear in constant functions |
29 | 29 | --> $DIR/cast_errors.rs:12:21
|
30 | 30 | |
|
31 | 31 | LL | const fn reify2() { main as unsafe fn(); }
|
32 | 32 | | ^^^^^^^^^^^^^^^^^^^
|
33 | 33 | |
|
34 | 34 | = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
|
35 |
| - = help: add `#![feature(const_fn)]` to the crate attributes to enable |
| 35 | + = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable |
36 | 36 |
|
37 | 37 | error: aborting due to 4 previous errors
|
38 | 38 |
|
39 |
| -For more information about this error, try `rustc --explain E0723`. |
| 39 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments