@@ -279,7 +279,7 @@ LL | const fn no_apit(_x: impl std::fmt::Debug) {}
279279 | |
280280 | constant functions cannot evaluate destructors
281281
282- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
282+ error[E0658]: trait objects in const fn are unstable
283283 --> $DIR/min_const_fn.rs:132:23
284284 |
285285LL | const fn no_dyn_trait(_x: &dyn std::fmt::Debug) {}
@@ -288,7 +288,7 @@ LL | const fn no_dyn_trait(_x: &dyn std::fmt::Debug) {}
288288 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
289289 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
290290
291- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
291+ error[E0658]: trait objects in const fn are unstable
292292 --> $DIR/min_const_fn.rs:134:32
293293 |
294294LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
@@ -297,7 +297,7 @@ LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
297297 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
298298 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
299299
300- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
300+ error[E0658]: trait objects in const fn are unstable
301301 --> $DIR/min_const_fn.rs:139:41
302302 |
303303LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1 }
@@ -308,7 +308,7 @@ LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1
308308 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
309309 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
310310
311- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
311+ error[E0658]: trait objects in const fn are unstable
312312 --> $DIR/min_const_fn.rs:139:42
313313 |
314314LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1 }
@@ -319,7 +319,7 @@ LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1
319319 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
320320 = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
321321
322- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
322+ error[E0658]: trait objects in const fn are unstable
323323 --> $DIR/min_const_fn.rs:139:42
324324 |
325325LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1 }
0 commit comments