1- error[E0723]: unsizing casts are not allowed in const fn
2- --> $DIR/cast_errors.rs:3:41
3- |
4- LL | const fn unsize(x: &[u8; 3]) -> &[u8] { x }
5- | ^
6- |
7- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
8- = help: add `#![feature(const_fn)]` to the crate attributes to enable
9-
101error[E0723]: function pointers in const fn are unstable
11- --> $DIR/cast_errors.rs:5 :23
2+ --> $DIR/cast_errors.rs:4 :23
123 |
134LL | const fn closure() -> fn() { || {} }
145 | ^^^^
@@ -17,7 +8,7 @@ LL | const fn closure() -> fn() { || {} }
178 = help: add `#![feature(const_fn)]` to the crate attributes to enable
189
1910error[E0723]: function pointers in const fn are unstable
20- --> $DIR/cast_errors.rs:8 :5
11+ --> $DIR/cast_errors.rs:7 :5
2112 |
2213LL | (|| {}) as fn();
2314 | ^^^^^^^^^^^^^^^
@@ -26,7 +17,7 @@ LL | (|| {}) as fn();
2617 = help: add `#![feature(const_fn)]` to the crate attributes to enable
2718
2819error[E0723]: function pointers in const fn are unstable
29- --> $DIR/cast_errors.rs:11 :28
20+ --> $DIR/cast_errors.rs:10 :28
3021 |
3122LL | const fn reify(f: fn()) -> unsafe fn() { f }
3223 | ^^^^^^^^^^^
@@ -35,14 +26,14 @@ LL | const fn reify(f: fn()) -> unsafe fn() { f }
3526 = help: add `#![feature(const_fn)]` to the crate attributes to enable
3627
3728error[E0723]: function pointers in const fn are unstable
38- --> $DIR/cast_errors.rs:13 :21
29+ --> $DIR/cast_errors.rs:12 :21
3930 |
4031LL | const fn reify2() { main as unsafe fn(); }
4132 | ^^^^^^^^^^^^^^^^^^^
4233 |
4334 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
4435 = help: add `#![feature(const_fn)]` to the crate attributes to enable
4536
46- error: aborting due to 5 previous errors
37+ error: aborting due to 4 previous errors
4738
4839For more information about this error, try `rustc --explain E0723`.
0 commit comments