]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31511.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / issues / issue-31511.rs
1 fn cast_thin_to_fat(x: *const ()) {
2     x as *const [u8];
3     //~^ ERROR: cannot cast thin pointer `*const ()` to fat pointer `*const [u8]`
4 }
5
6 fn main() {}