1 error[E0658]: trait objects in const fn are unstable
2 --> $DIR/min_const_fn_dyn.rs:9:5
4 LL | const fn no_inner_dyn_trait2(x: Hide) {
5 | ------------------------------------- function declared as const here
9 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
10 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
12 error[E0658]: trait objects in const fn are unstable
13 --> $DIR/min_const_fn_dyn.rs:12:66
15 LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
16 | ----------------------------------------- ^^
18 | function declared as const here
20 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
21 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0658`.