summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/self_normalization.rs
blob: b2a34f5877b194c6d08aaeafe8b702075aff60ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

fn testfn(_arr: &mut [(); 0]) {}

trait TestTrait {
    fn method();
}

impl TestTrait for [(); 0] {
    fn method() {
        let mut arr: Self = [(); 0];
        testfn(&mut arr);
    }
}

fn main() {}