@@ -288,32 +288,32 @@ LL | const fn no_dyn_trait_ret() -> &'static 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]: unsizing casts to types besides slices are not allowed in const fn
292
- --> $DIR/min_const_fn.rs:134:63
291
+ error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
292
+ --> $DIR/min_const_fn.rs:139:41
293
293
|
294
- LL | const fn no_dyn_trait_ret () -> &'static dyn std::fmt::Debug { &() }
295
- | ^^^
294
+ LL | const fn really_no_traits_i_mean_it () { (&() as & dyn std::fmt::Debug, ()).1 }
295
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^
296
296
|
297
- = note: see issue #64992 <https://github.com/rust-lang/rust/issues/64992 > for more information
298
- = help: add `#![feature(const_fn_unsize )]` to the crate attributes to enable
297
+ = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
298
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
299
299
300
- error[E0658]: unsizing casts to types besides slices are not allowed in const fn
301
- --> $DIR/min_const_fn.rs:134:63
300
+ error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
301
+ --> $DIR/min_const_fn.rs:139:42
302
302
|
303
- LL | const fn no_dyn_trait_ret () -> &'static dyn std::fmt::Debug { &() }
304
- | ^^^
303
+ LL | const fn really_no_traits_i_mean_it () { (&() as & dyn std::fmt::Debug, ()).1 }
304
+ | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^
305
305
|
306
- = note: see issue #64992 <https://github.com/rust-lang/rust/issues/64992 > for more information
307
- = help: add `#![feature(const_fn_unsize )]` to the crate attributes to enable
306
+ = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
307
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
308
308
309
- error[E0658]: unsizing casts to types besides slices are not allowed in const fn
310
- --> $DIR/min_const_fn.rs:141 :42
309
+ error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
310
+ --> $DIR/min_const_fn.rs:139 :42
311
311
|
312
312
LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1 }
313
- | ^^^
313
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
314
314
|
315
- = note: see issue #64992 <https://github.com/rust-lang/rust/issues/64992 > for more information
316
- = help: add `#![feature(const_fn_unsize )]` to the crate attributes to enable
315
+ = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
316
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
317
317
318
318
error[E0658]: function pointers cannot appear in constant functions
319
319
--> $DIR/min_const_fn.rs:144:21
0 commit comments