]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31511.rs
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
[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() {}