@@ -130,23 +130,23 @@ LL | const fn get_mut_sq(&mut self) -> &mut T { &mut self.0 }
130130 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
131131 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
132132
133- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
133+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
134134 --> $DIR/min_const_fn.rs:84:16
135135 |
136136LL | const fn foo11<T: std::fmt::Display>(t: T) -> T { t }
137137 | ^
138138 |
139139 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
140- = help: add `#![feature(const_fn )]` to the crate attributes to enable
140+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
141141
142- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
142+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
143143 --> $DIR/min_const_fn.rs:86:18
144144 |
145145LL | const fn foo11_2<T: Send>(t: T) -> T { t }
146146 | ^
147147 |
148148 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
149- = help: add `#![feature(const_fn )]` to the crate attributes to enable
149+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
150150
151151error[E0013]: constant functions cannot refer to statics
152152 --> $DIR/min_const_fn.rs:90:27
@@ -209,41 +209,41 @@ LL | const fn inc(x: &mut i32) { *x += 1 }
209209 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
210210 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
211211
212- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
212+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
213213 --> $DIR/min_const_fn.rs:110:6
214214 |
215215LL | impl<T: std::fmt::Debug> Foo<T> {
216216 | ^
217217 |
218218 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
219- = help: add `#![feature(const_fn )]` to the crate attributes to enable
219+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
220220
221- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
221+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
222222 --> $DIR/min_const_fn.rs:115:6
223223 |
224224LL | impl<T: std::fmt::Debug + Sized> Foo<T> {
225225 | ^
226226 |
227227 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
228- = help: add `#![feature(const_fn )]` to the crate attributes to enable
228+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
229229
230- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
230+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
231231 --> $DIR/min_const_fn.rs:120:6
232232 |
233233LL | impl<T: Sync + Sized> Foo<T> {
234234 | ^
235235 |
236236 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
237- = help: add `#![feature(const_fn )]` to the crate attributes to enable
237+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
238238
239- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
239+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
240240 --> $DIR/min_const_fn.rs:126:34
241241 |
242242LL | const fn no_apit2(_x: AlanTuring<impl std::fmt::Debug>) {}
243243 | ^^^^^^^^^^^^^^^^^^^^
244244 |
245245 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
246- = help: add `#![feature(const_fn )]` to the crate attributes to enable
246+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
247247
248248error[E0493]: destructors cannot be evaluated at compile-time
249249 --> $DIR/min_const_fn.rs:126:19
@@ -253,14 +253,14 @@ LL | const fn no_apit2(_x: AlanTuring<impl std::fmt::Debug>) {}
253253 | |
254254 | constant functions cannot evaluate destructors
255255
256- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
256+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
257257 --> $DIR/min_const_fn.rs:129:22
258258 |
259259LL | const fn no_apit(_x: impl std::fmt::Debug) {}
260260 | ^^^^^^^^^^^^^^^^^^^^
261261 |
262262 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
263- = help: add `#![feature(const_fn )]` to the crate attributes to enable
263+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
264264
265265error[E0493]: destructors cannot be evaluated at compile-time
266266 --> $DIR/min_const_fn.rs:129:18
@@ -270,23 +270,23 @@ LL | const fn no_apit(_x: impl std::fmt::Debug) {}
270270 | |
271271 | constant functions cannot evaluate destructors
272272
273- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
273+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
274274 --> $DIR/min_const_fn.rs:132:23
275275 |
276276LL | const fn no_dyn_trait(_x: &dyn std::fmt::Debug) {}
277277 | ^^
278278 |
279279 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
280- = help: add `#![feature(const_fn )]` to the crate attributes to enable
280+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
281281
282- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
282+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
283283 --> $DIR/min_const_fn.rs:134:32
284284 |
285285LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
286286 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287287 |
288288 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
289- = help: add `#![feature(const_fn )]` to the crate attributes to enable
289+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
290290
291291error[E0723]: unsizing casts to types besides slices are not allowed in const fn
292292 --> $DIR/min_const_fn.rs:134:63
0 commit comments