summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-47206-where-clause.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/issue-47206-where-clause.stderr')
-rw-r--r--tests/ui/generic-associated-types/issue-47206-where-clause.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-47206-where-clause.stderr b/tests/ui/generic-associated-types/issue-47206-where-clause.stderr
new file mode 100644
index 000000000..7006744df
--- /dev/null
+++ b/tests/ui/generic-associated-types/issue-47206-where-clause.stderr
@@ -0,0 +1,12 @@
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/issue-47206-where-clause.rs:10:38
+ |
+LL | type Assoc3<T>;
+ | -------------- definition of `Assoc3` from trait
+...
+LL | type Assoc3<T> = Vec<T> where T: Iterator;
+ | ^^^^^^^^ impl has extra requirement `T: Iterator`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0276`.