2025-07-13 16:25:27 -04:00
|
|
|
// https://github.com/rust-lang/rust/issues/43483
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
#![allow(unused_variables)]
|
2017-12-26 22:11:18 +09:00
|
|
|
trait VecN {
|
|
|
|
|
const DIM: usize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
trait Mat {
|
|
|
|
|
type Row: VecN;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn m<M: Mat>() {
|
|
|
|
|
let x = M::Row::DIM;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|