]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/min_const_fn/min_const_fn_dyn.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / min_const_fn_dyn.stderr
CommitLineData
cdc7bbd5 1error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
0731742a 2 --> $DIR/min_const_fn_dyn.rs:9:5
b7449926
XL
3 |
4LL | x.0.field;
5 | ^^^^^^^^^
9fa01778 6 |
74b04a01 7 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
cdc7bbd5 8 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
b7449926 9
17df50a5 10error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
0731742a 11 --> $DIR/min_const_fn_dyn.rs:12:66
b7449926
XL
12 |
13LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
14 | ^^
9fa01778 15 |
17df50a5
XL
16 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
17 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
b7449926 18
60c5eb7d 19error: aborting due to 2 previous errors
b7449926 20
cdc7bbd5 21For more information about this error, try `rustc --explain E0658`.