@@ -160,7 +160,7 @@ LL | const fn foo30_2_with_unsafe(x: *mut u32) -> usize { unsafe { x as usize }
160160 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
161161 = help: add #![feature(const_fn)] to the crate attributes to enable
162162
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
164164 --> $DIR/min_const_fn.rs:100:38
165165 |
166166LL | 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 } }
169169 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
170170 = help: add #![feature(const_fn)] to the crate attributes to enable
171171
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
173173 --> $DIR/min_const_fn.rs:102:29
174174 |
175175LL | const fn foo30_5(b: bool) { while b { } }
@@ -178,7 +178,7 @@ LL | const fn foo30_5(b: bool) { while b { } }
178178 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
179179 = help: add #![feature(const_fn)] to the crate attributes to enable
180180
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
182182 --> $DIR/min_const_fn.rs:104:44
183183 |
184184LL | 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 }
187187 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
188188 = help: add #![feature(const_fn)] to the crate attributes to enable
189189
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
191191 --> $DIR/min_const_fn.rs:106:44
192192 |
193193LL | const fn foo37(a: bool, b: bool) -> bool { a || b }
0 commit comments