error[E0658]: unsizing casts to types besides slices are not allowed in const fn --> $DIR/unsizing-cast-non-null.rs:6:5 | LL | NonNull::<[T; 0]>::dangling() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #64992 for more information = help: add `#![feature(const_fn_unsize)]` to the crate attributes to enable error: aborting due to previous error For more information about this error, try `rustc --explain E0658`.