mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
295 B
Rust
17 lines
295 B
Rust
trait MatrixShape {}
|
|
|
|
struct Col<D, C> {
|
|
data: D,
|
|
col: C,
|
|
}
|
|
|
|
trait Collection { fn len(&self) -> usize; }
|
|
|
|
impl<T, M: MatrixShape> Collection for Col<M, usize> {
|
|
//~^ ERROR type parameter `T` is not constrained
|
|
fn len(&self) -> usize {
|
|
unimplemented!()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|