diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-16562.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16562.rs b/src/test/ui/issues/issue-16562.rs new file mode 100644 index 000000000..e16a35158 --- /dev/null +++ b/src/test/ui/issues/issue-16562.rs @@ -0,0 +1,17 @@ +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() {} |