@@ -288,32 +288,32 @@ LL | const fn no_dyn_trait_ret() -> &'static 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[E0723 ]: unsizing casts to types besides slices are not allowed in const fn
291+ error[E0658 ]: unsizing casts to types besides slices are not allowed in const fn
292292 --> $DIR/min_const_fn.rs:134:63
293293 |
294294LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
295295 | ^^^
296296 |
297- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
298- = help: add `#![feature(const_fn )]` to the crate attributes to enable
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
299299
300- error[E0723 ]: unsizing casts to types besides slices are not allowed in const fn
300+ error[E0658 ]: unsizing casts to types besides slices are not allowed in const fn
301301 --> $DIR/min_const_fn.rs:134:63
302302 |
303303LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
304304 | ^^^
305305 |
306- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
307- = help: add `#![feature(const_fn )]` to the crate attributes to enable
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
308308
309- error[E0723 ]: unsizing casts to types besides slices are not allowed in const fn
309+ error[E0658 ]: unsizing casts to types besides slices are not allowed in const fn
310310 --> $DIR/min_const_fn.rs:141:42
311311 |
312312LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1 }
313313 | ^^^
314314 |
315- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
316- = help: add `#![feature(const_fn )]` to the crate attributes to enable
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
317317
318318error[E0658]: function pointers cannot appear in constant functions
319319 --> $DIR/min_const_fn.rs:144:21
@@ -344,5 +344,5 @@ LL | const fn no_fn_ptrs2() -> fn() { fn foo() {} foo }
344344
345345error: aborting due to 39 previous errors
346346
347- Some errors have detailed explanations: E0013, E0493, E0658, E0723 .
347+ Some errors have detailed explanations: E0013, E0493, E0658.
348348For more information about an error, try `rustc --explain E0013`.
0 commit comments