@@ -279,7 +279,7 @@ LL | const fn no_apit(_x: impl std::fmt::Debug) {}
279
279
| |
280
280
| constant functions cannot evaluate destructors
281
281
282
- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
282
+ error[E0658]: trait objects in const fn are unstable
283
283
--> $DIR/min_const_fn.rs:132:23
284
284
|
285
285
LL | 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) {}
288
288
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
289
289
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
290
290
291
- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
291
+ error[E0658]: trait objects in const fn are unstable
292
292
--> $DIR/min_const_fn.rs:134:32
293
293
|
294
294
LL | 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 { &() }
297
297
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
298
298
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
299
299
300
- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
300
+ error[E0658]: trait objects in const fn are unstable
301
301
--> $DIR/min_const_fn.rs:139:41
302
302
|
303
303
LL | 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
308
308
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
309
309
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
310
310
311
- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
311
+ error[E0658]: trait objects in const fn are unstable
312
312
--> $DIR/min_const_fn.rs:139:42
313
313
|
314
314
LL | 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
319
319
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
320
320
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
321
321
322
- error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
322
+ error[E0658]: trait objects in const fn are unstable
323
323
--> $DIR/min_const_fn.rs:139:42
324
324
|
325
325
LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1 }
0 commit comments