]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/self_normalization.rs
Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb
[rust.git] / tests / ui / consts / self_normalization.rs
1 // check-pass
2
3 fn testfn(_arr: &mut [(); 0]) {}
4
5 trait TestTrait {
6     fn method();
7 }
8
9 impl TestTrait for [(); 0] {
10     fn method() {
11         let mut arr: Self = [(); 0];
12         testfn(&mut arr);
13     }
14 }
15
16 fn main() {}