Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Regression test for https://github.com/rust-lang/rust/issues/16562
// Tests that E0207 is emitted when a type parameter is unconstrained in an impl block.

trait MatrixShape {}

struct Col<D, C> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
--> $DIR/issue-16562.rs:10:6
--> $DIR/unconstrained-type-param-in-impl.rs:10:6
|
LL | impl<T, M: MatrixShape> Collection for Col<M, usize> {
| ^ unconstrained type parameter
Expand Down
Loading