@@ -76,41 +76,41 @@ LL | const fn foo11_2<T: Send>(t: T) -> T { t }
76
76
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
77
77
= help: add `#![feature(const_fn)]` to the crate attributes to enable
78
78
79
- error[E0723 ]: only int, `bool` and `char` operations are stable in const fn
79
+ error[E0658 ]: floating point arithmetic is not allowed in constant functions
80
80
--> $DIR/min_const_fn.rs:80:33
81
81
|
82
82
LL | const fn foo19(f: f32) -> f32 { f * 2.0 }
83
83
| ^^^^^^^
84
84
|
85
85
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
86
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
86
+ = help: add `#![feature(const_fn_floating_point_arithmetic )]` to the crate attributes to enable
87
87
88
- error[E0723 ]: only int, `bool` and `char` operations are stable in const fn
88
+ error[E0658 ]: floating point arithmetic is not allowed in constant functions
89
89
--> $DIR/min_const_fn.rs:82:35
90
90
|
91
91
LL | const fn foo19_2(f: f32) -> f32 { 2.0 - f }
92
92
| ^^^^^^^
93
93
|
94
94
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
95
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
95
+ = help: add `#![feature(const_fn_floating_point_arithmetic )]` to the crate attributes to enable
96
96
97
- error[E0723 ]: only int, `bool` and `char` operations are stable in const fn
97
+ error[E0658 ]: floating point arithmetic is not allowed in constant functions
98
98
--> $DIR/min_const_fn.rs:84:35
99
99
|
100
100
LL | const fn foo19_3(f: f32) -> f32 { -f }
101
101
| ^^
102
102
|
103
103
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
104
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
104
+ = help: add `#![feature(const_fn_floating_point_arithmetic )]` to the crate attributes to enable
105
105
106
- error[E0723 ]: only int, `bool` and `char` operations are stable in const fn
106
+ error[E0658 ]: floating point arithmetic is not allowed in constant functions
107
107
--> $DIR/min_const_fn.rs:86:43
108
108
|
109
109
LL | const fn foo19_4(f: f32, g: f32) -> f32 { f / g }
110
110
| ^^^^^
111
111
|
112
112
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
113
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
113
+ = help: add `#![feature(const_fn_floating_point_arithmetic )]` to the crate attributes to enable
114
114
115
115
error[E0013]: constant functions cannot refer to statics
116
116
--> $DIR/min_const_fn.rs:90:27
0 commit comments