summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs')
-rw-r--r--src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs b/src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs
new file mode 100644
index 000000000..8171dc0ae
--- /dev/null
+++ b/src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs
@@ -0,0 +1,13 @@
+// check-fail
+
+#![feature(generic_associated_types)]
+
+trait Foo {
+ type Assoc<'a, 'b>;
+}
+impl Foo for () {
+ type Assoc<'a, 'b> = () where 'a: 'b;
+ //~^ impl has stricter requirements than trait
+}
+
+fn main() {}