1 error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
2 --> $DIR/min_const_fn_dyn.rs:9:5
7 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8 = help: add `#![feature(const_fn)]` to the crate attributes to enable
10 error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
11 --> $DIR/min_const_fn_dyn.rs:12:66
13 LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
16 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17 = help: add `#![feature(const_fn)]` to the crate attributes to enable
19 error[E0716]: temporary value dropped while borrowed
20 --> $DIR/min_const_fn_dyn.rs:12:67
22 LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
23 | -^ - temporary value is freed at the end of this statement
25 | |creates a temporary which is freed while still in use
26 | cast requires that borrow lasts for `'static`
28 error: aborting due to 3 previous errors
30 Some errors have detailed explanations: E0716, E0723.
31 For more information about an error, try `rustc --explain E0716`.