blob: 6f3834d51a1ade945af777f2cc4675794d1ae50c [file] [log] [blame] [edit]
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() {
}