]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | error[E0658]: function pointers cannot appear in constant functions |
2 | --> $DIR/min_const_fn_fn_ptr.rs:13:5 | |
b7449926 XL |
3 | | |
4 | LL | x.0.field; | |
5 | | ^^^^^^^^^ | |
9fa01778 | 6 | | |
74b04a01 | 7 | = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information |
1b1a35ee | 8 | = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable |
b7449926 | 9 | |
1b1a35ee XL |
10 | error[E0658]: function pointer casts are not allowed in constant functions |
11 | --> $DIR/min_const_fn_fn_ptr.rs:16:59 | |
b7449926 XL |
12 | | |
13 | LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasPtr { field }) } | |
14 | | ^^^^^ | |
9fa01778 | 15 | | |
74b04a01 | 16 | = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information |
1b1a35ee | 17 | = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable |
b7449926 XL |
18 | |
19 | error: aborting due to 2 previous errors | |
20 | ||
1b1a35ee | 21 | For more information about this error, try `rustc --explain E0658`. |