summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-39211.rs
blob: 6f3834d51a1ade945af777f2cc4675794d1ae50c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait VecN {
    const DIM: usize;
}
trait Mat {
    type Row: VecN;
}

fn m<M: Mat>() {
    let a = [3; M::Row::DIM];
    //~^ ERROR constant expression depends on a generic parameter
}
fn main() {
}