about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric <e.lim0322@gmail.com>2021-08-30 21:17:43 +1200
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-09-02 20:53:15 -0500
commitae5696a7c4c2edf642c37f06c526eb6bdf78c23b (patch)
tree40ecf5d035f1194bc878f8155e04a3b0778dcbb5
parentbfc60466bdbab90d578c6912083fe2e238e29166 (diff)
downloadrust-ae5696a7c4c2edf642c37f06c526eb6bdf78c23b.tar.gz
rust-ae5696a7c4c2edf642c37f06c526eb6bdf78c23b.zip
test: add test for #4322
-rw-r--r--tests/source/issue_4322.rs3
-rw-r--r--tests/target/issue_4322.rs5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/source/issue_4322.rs b/tests/source/issue_4322.rs
new file mode 100644
index 00000000000..b28cc7cdd12
--- /dev/null
+++ b/tests/source/issue_4322.rs
@@ -0,0 +1,3 @@
+trait Bar {
+  type X<'a> where Self: 'a;
+}
diff --git a/tests/target/issue_4322.rs b/tests/target/issue_4322.rs
new file mode 100644
index 00000000000..0ec0547119f
--- /dev/null
+++ b/tests/target/issue_4322.rs
@@ -0,0 +1,5 @@
+trait Bar {
+    type X<'a>
+    where
+        Self: 'a;
+}