]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/unsizing-cast-non-null.stderr
Auto merge of #75137 - Aaron1011:fix/hygiene-skip-expndata, r=petrochenkov
[rust.git] / src / test / ui / consts / unsizing-cast-non-null.stderr
1 error[E0723]: unsizing casts are only allowed for references right now
2   --> $DIR/unsizing-cast-non-null.rs:6:5
3    |
4 LL |     NonNull::<[T; 0]>::dangling()
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
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0723`.