2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2017-12-26 07:11:18 -06:00
|
|
|
trait VecN {
|
|
|
|
const DIM: usize;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Mat {
|
|
|
|
type Row: VecN;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn m<M: Mat>() {
|
|
|
|
let x = M::Row::DIM;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|