]> git.lizzy.rs Git - rust.git/blob - src/test/ui/internal/internal-unstable-const.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / internal / internal-unstable-const.stderr
1 error: const-stable function cannot use `#[feature(const_fn_floating_point_arithmetic)]`
2   --> $DIR/internal-unstable-const.rs:10:5
3    |
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    |
9 LL | #[rustc_const_unstable(feature = "...", issue = "...")]
10    |
11 help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks
12    |
13 LL | #[rustc_allow_const_fn_unstable(const_fn_floating_point_arithmetic)]
14    |
15
16 error: aborting due to previous error
17