]>
Commit | Line | Data |
---|---|---|
94222f64 XL |
1 | error: const-stable function cannot use `#[feature(const_fn_floating_point_arithmetic)]` |
2 | --> $DIR/internal-unstable-const.rs:10:5 | |
dfeec247 | 3 | | |
94222f64 XL |
4 | LL | 1.0 + 1.0 |
5 | | ^^^^^^^^^ | |
6 | | | |
7 | help: if it is not part of the public API, make this function unstably const | |
8 | | | |
353b0b11 FG |
9 | LL + #[rustc_const_unstable(feature = "...", issue = "...")] |
10 | LL | pub const fn foo() -> f32 { | |
94222f64 XL |
11 | | |
12 | help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks | |
13 | | | |
353b0b11 FG |
14 | LL + #[rustc_allow_const_fn_unstable(const_fn_floating_point_arithmetic)] |
15 | LL | pub const fn foo() -> f32 { | |
dfeec247 | 16 | | |
dfeec247 | 17 | |
4b012472 | 18 | error: aborting due to 1 previous error |
dfeec247 | 19 |