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