about summary refs log tree commit diff
path: root/tests/crashes/137582.rs
blob: e21b6c9578b7f27243107275079ab9b5359c98a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ known-bug: #137582
#![feature(adt_const_params)]

mod lib {
    pub type Matrix = [&'static u32];

    const EMPTY_MATRIX: Matrix = [[0; 4]; 4];

    pub struct Walk<const CURRENT: usize, const REMAINING: Matrix> {
        _p: (),
    }

    impl<const CURRENT: usize> Walk<CURRENT, EMPTY_MATRIX> {}
}

fn main() {}