2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be 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() {}
|