fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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