]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31511.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[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() {}