summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/lower_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/lower_impl.rs')
-rw-r--r--tests/ui/chalkify/lower_impl.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/chalkify/lower_impl.rs b/tests/ui/chalkify/lower_impl.rs
new file mode 100644
index 000000000..6f79b3ba3
--- /dev/null
+++ b/tests/ui/chalkify/lower_impl.rs
@@ -0,0 +1,17 @@
+// check-pass
+// compile-flags: -Z trait-solver=chalk
+
+trait Foo { }
+
+impl<T: 'static> Foo for T where T: Iterator<Item = i32> { }
+
+trait Bar {
+ type Assoc;
+}
+
+impl<T> Bar for T where T: Iterator<Item = i32> {
+ type Assoc = Vec<T>;
+}
+
+fn main() {
+}