@@ -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[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
292
292
--> $DIR/min_const_fn.rs:134:63
293
293
|
294
294
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
295
295
| ^^^
296
296
|
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
299
299
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
301
301
--> $DIR/min_const_fn.rs:134:63
302
302
|
303
303
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
304
304
| ^^^
305
305
|
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
308
308
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
310
310
--> $DIR/min_const_fn.rs:141: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 #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
317
317
318
318
error[E0658]: function pointers cannot appear in constant functions
319
319
--> $DIR/min_const_fn.rs:144:21
@@ -344,5 +344,5 @@ LL | const fn no_fn_ptrs2() -> fn() { fn foo() {} foo }
344
344
345
345
error: aborting due to 39 previous errors
346
346
347
- Some errors have detailed explanations: E0013, E0493, E0658, E0723 .
347
+ Some errors have detailed explanations: E0013, E0493, E0658.
348
348
For more information about an error, try `rustc --explain E0013`.
0 commit comments