rust/src/test/ui/issues/issue-43483.rs
2018-12-25 21:08:33 -07:00

17 lines
196 B
Rust

// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]
trait VecN {
const DIM: usize;
}
trait Mat {
type Row: VecN;
}
fn m<M: Mat>() {
let x = M::Row::DIM;
}
fn main() {}