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

18 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() {}