trait MatrixShape {} struct Col { data: D, col: C, } trait Collection { fn len(&self) -> usize; } impl Collection for Col { //~^ ERROR type parameter `T` is not constrained fn len(&self) -> usize { unimplemented!() } } fn main() {}