]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-58212.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-58212.rs
1 // check-pass
2
3 trait FromUnchecked {
4     fn from_unchecked();
5 }
6
7 impl FromUnchecked for [u8; 1] {
8     fn from_unchecked() {
9         let mut array: Self = [0; 1];
10         let _ptr = &mut array as *mut [u8] as *mut u8;
11     }
12 }
13
14 fn main() {
15 }