]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/min_const_fn_dyn.stderr
Auto merge of #58505 - schomatis:fix/nll/remove-live-var, r=matthewjasper
[rust.git] / src / test / ui / consts / min_const_fn / min_const_fn_dyn.stderr
1 error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable (see issue #57563)
2   --> $DIR/min_const_fn_dyn.rs:9:5
3    |
4 LL |     x.0.field;
5    |     ^^^^^^^^^
6    |
7    = help: add #![feature(const_fn)] to the crate attributes to enable
8
9 error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable (see issue #57563)
10   --> $DIR/min_const_fn_dyn.rs:12:66
11    |
12 LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
13    |                                                                  ^^
14    |
15    = help: add #![feature(const_fn)] to the crate attributes to enable
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0723`.