summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/issue-43784-supertrait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/traits/issue-43784-supertrait.rs')
-rw-r--r--src/test/ui/traits/issue-43784-supertrait.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/traits/issue-43784-supertrait.rs b/src/test/ui/traits/issue-43784-supertrait.rs
new file mode 100644
index 000000000..55c26ccd2
--- /dev/null
+++ b/src/test/ui/traits/issue-43784-supertrait.rs
@@ -0,0 +1,10 @@
+pub trait Partial: Copy {
+}
+
+pub trait Complete: Partial {
+}
+
+impl<T> Partial for T where T: Complete {}
+impl<T> Complete for T {} //~ ERROR the trait bound `T: Copy` is not satisfied
+
+fn main() {}