]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
[rust.git] / src / test / ui / consts / min_const_fn / min_const_unsafe_fn_libstd_stability2.stderr
1 error[E0723]: can only call other `const fn` within a `const fn`, but `foo` is not stable as `const fn`
2   --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:16:32
3    |
4 LL | const unsafe fn bar() -> u32 { foo() }
5    |                                ^^^^^
6    |
7    = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
8    = help: add `#![feature(const_fn)]` to the crate attributes to enable
9
10 error[E0723]: can only call other `const fn` within a `const fn`, but `foo2` is not stable as `const fn`
11   --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:24:33
12    |
13 LL | const unsafe fn bar2() -> u32 { foo2() }
14    |                                 ^^^^^^
15    |
16    = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
17    = help: add `#![feature(const_fn)]` to the crate attributes to enable
18
19 error[E0723]: can only call other `const fn` within a `const fn`, but `foo2_gated` is not stable as `const fn`
20   --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:33:39
21    |
22 LL | const unsafe fn bar2_gated() -> u32 { foo2_gated() }
23    |                                       ^^^^^^^^^^^^
24    |
25    = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
26    = help: add `#![feature(const_fn)]` to the crate attributes to enable
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0723`.