@@ -160,7 +160,7 @@ LL | const fn foo30_2_with_unsafe(x: *mut u32) -> usize { unsafe { x as usize }
160
160
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
161
161
= help: add #![feature(const_fn)] to the crate attributes to enable
162
162
163
- error[E0723]: `if`, `match`, `&&` and `||` are not stable in const fn
163
+ error[E0723]: loops and conditional expressions are not stable in const fn
164
164
--> $DIR/min_const_fn.rs:100:38
165
165
|
166
166
LL | const fn foo30_4(b: bool) -> usize { if b { 1 } else { 42 } }
@@ -169,7 +169,7 @@ LL | const fn foo30_4(b: bool) -> usize { if b { 1 } else { 42 } }
169
169
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
170
170
= help: add #![feature(const_fn)] to the crate attributes to enable
171
171
172
- error[E0723]: `if`, `match`, `&&` and `||` are not stable in const fn
172
+ error[E0723]: loops and conditional expressions are not stable in const fn
173
173
--> $DIR/min_const_fn.rs:102:29
174
174
|
175
175
LL | const fn foo30_5(b: bool) { while b { } }
@@ -178,7 +178,7 @@ LL | const fn foo30_5(b: bool) { while b { } }
178
178
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
179
179
= help: add #![feature(const_fn)] to the crate attributes to enable
180
180
181
- error[E0723]: `if`, `match`, `&&` and `||` are not stable in const fn
181
+ error[E0723]: loops and conditional expressions are not stable in const fn
182
182
--> $DIR/min_const_fn.rs:104:44
183
183
|
184
184
LL | const fn foo36(a: bool, b: bool) -> bool { a && b }
@@ -187,7 +187,7 @@ LL | const fn foo36(a: bool, b: bool) -> bool { a && b }
187
187
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
188
188
= help: add #![feature(const_fn)] to the crate attributes to enable
189
189
190
- error[E0723]: `if`, `match`, `&&` and `||` are not stable in const fn
190
+ error[E0723]: loops and conditional expressions are not stable in const fn
191
191
--> $DIR/min_const_fn.rs:106:44
192
192
|
193
193
LL | const fn foo37(a: bool, b: bool) -> bool { a || b }
0 commit comments