]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/min_const_fn_dyn.stderr
Change inference var check to be in project_type
[rust.git] / src / test / ui / consts / min_const_fn / min_const_fn_dyn.stderr
1 error[E0658]: trait objects in const fn are unstable
2   --> $DIR/min_const_fn_dyn.rs:9:5
3    |
4 LL | const fn no_inner_dyn_trait2(x: Hide) {
5    | ------------------------------------- function declared as const here
6 LL |     x.0.field;
7    |     ^^^^^^^^^
8    |
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
11
12 error[E0658]: trait objects in const fn are unstable
13   --> $DIR/min_const_fn_dyn.rs:12:66
14    |
15 LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
16    | -----------------------------------------                        ^^
17    | |
18    | function declared as const here
19    |
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
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0658`.