about summary refs log tree commit diff
path: root/tests/ui/issues/issue-31511.rs
blob: 6c8df1157c6c8001a9c733b7bd979e37c25571e8 (plain)
1
2
3
4
5
6
fn cast_thin_to_fat(x: *const ()) {
    x as *const [u8];
    //~^ ERROR: cannot cast thin pointer `*const ()` to wide pointer `*const [u8]`
}

fn main() {}