]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/min_const_fn/min_const_fn_libstd_stability.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / min_const_fn_libstd_stability.stderr
1 error: `foo` is not yet stable as a const fn
2 --> $DIR/min_const_fn_libstd_stability.rs:16:25
3 |
4 LL | const fn bar() -> u32 { foo() }
5 | ^^^^^
6 |
7 = help: Const-stable functions can only call other const-stable functions
8
9 error: `foo2` is not yet stable as a const fn
10 --> $DIR/min_const_fn_libstd_stability.rs:24:26
11 |
12 LL | const fn bar2() -> u32 { foo2() }
13 | ^^^^^^
14 |
15 = help: Const-stable functions can only call other const-stable functions
16
17 error: const-stable function cannot use `#[feature(const_fn_floating_point_arithmetic)]`
18 --> $DIR/min_const_fn_libstd_stability.rs:29:26
19 |
20 LL | const fn bar3() -> u32 { (5f32 + 6f32) as u32 }
21 | ^^^^^^^^^^^^^
22 |
23 help: if it is not part of the public API, make this function unstably const
24 |
25 LL | #[rustc_const_unstable(feature = "...", issue = "...")]
26 |
27 help: otherwise `#[allow_internal_unstable]` can be used to bypass stability checks
28 |
29 LL | #[allow_internal_unstable(const_fn_floating_point_arithmetic)]
30 |
31
32 error: `foo2_gated` is not yet stable as a const fn
33 --> $DIR/min_const_fn_libstd_stability.rs:39:32
34 |
35 LL | const fn bar2_gated() -> u32 { foo2_gated() }
36 | ^^^^^^^^^^^^
37 |
38 = help: Const-stable functions can only call other const-stable functions
39
40 error: aborting due to 4 previous errors
41