]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31511.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[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() {}