]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/unsizing-cast-non-null.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / consts / unsizing-cast-non-null.stderr
CommitLineData
cdc7bbd5 1error[E0658]: unsizing casts to types besides slices are not allowed in const fn
f9652781
XL
2 --> $DIR/unsizing-cast-non-null.rs:6:5
3 |
4LL | NonNull::<[T; 0]>::dangling()
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
cdc7bbd5
XL
7 = note: see issue #64992 <https://github.com/rust-lang/rust/issues/64992> for more information
8 = help: add `#![feature(const_fn_unsize)]` to the crate attributes to enable
f9652781
XL
9
10error: aborting due to previous error
11
cdc7bbd5 12For more information about this error, try `rustc --explain E0658`.