]> git.proxmox.com Git - rustc.git/blob - tests/ui/internal/internal-unstable-const.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / 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 LL | pub const fn foo() -> f32 {
11 |
12 help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks
13 |
14 LL + #[rustc_allow_const_fn_unstable(const_fn_floating_point_arithmetic)]
15 LL | pub const fn foo() -> f32 {
16 |
17
18 error: aborting due to previous error
19