summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-58212.rs
blob: 4695497c3a184881567d1b6515a66bce68e90168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

trait FromUnchecked {
    fn from_unchecked();
}

impl FromUnchecked for [u8; 1] {
    fn from_unchecked() {
        let mut array: Self = [0; 1];
        let _ptr = &mut array as *mut [u8] as *mut u8;
    }
}

fn main() {
}