1 error[E0723]: can only call other `const fn` within a `const fn`, but `const foo` is not stable as `const fn`
2 --> $DIR/min_const_fn_libstd_stability.rs:16:25
4 LL | const fn bar() -> u32 { foo() }
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
10 error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2` is not stable as `const fn`
11 --> $DIR/min_const_fn_libstd_stability.rs:24:26
13 LL | const fn bar2() -> u32 { foo2() }
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
19 error[E0723]: only int, `bool` and `char` operations are stable in const fn
20 --> $DIR/min_const_fn_libstd_stability.rs:29:26
22 LL | const fn bar3() -> u32 { (5f32 + 6f32) as u32 }
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
28 error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2_gated` is not stable as `const fn`
29 --> $DIR/min_const_fn_libstd_stability.rs:38:32
31 LL | const fn bar2_gated() -> u32 { foo2_gated() }
34 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
35 = help: add `#![feature(const_fn)]` to the crate attributes to enable
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0723`.