about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvallentin <mail@vallentin.dev>2021-01-17 18:56:04 +0100
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-01-27 20:58:42 -0600
commit1e2b0b7c72ea524360280cbeeae092beecf54e4f (patch)
tree66ae6b3a015a5736a7d7f88c02897729b16c55c2
parent384ba68d649ae83ee9817d70742841f6e8f07a35 (diff)
downloadrust-1e2b0b7c72ea524360280cbeeae092beecf54e4f.tar.gz
rust-1e2b0b7c72ea524360280cbeeae092beecf54e4f.zip
Added 4646 test case
-rw-r--r--tests/source/issue-4646.rs20
-rw-r--r--tests/target/issue-4646.rs20
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/source/issue-4646.rs b/tests/source/issue-4646.rs
new file mode 100644
index 00000000000..ee0f23220c9
--- /dev/null
+++ b/tests/source/issue-4646.rs
@@ -0,0 +1,20 @@
+trait Foo {
+    fn bar(&self)
+    // where
+    //     Self: Bar
+    ;
+}
+
+trait Foo {
+    fn bar(&self)
+    // where
+    //     Self: Bar
+;
+}
+
+trait Foo {
+    fn bar(&self)
+    // where
+    //     Self: Bar
+        ;
+}
diff --git a/tests/target/issue-4646.rs b/tests/target/issue-4646.rs
new file mode 100644
index 00000000000..4e149399f06
--- /dev/null
+++ b/tests/target/issue-4646.rs
@@ -0,0 +1,20 @@
+trait Foo {
+    fn bar(&self)
+    // where
+    //     Self: Bar
+    ;
+}
+
+trait Foo {
+    fn bar(&self)
+    // where
+    //     Self: Bar
+    ;
+}
+
+trait Foo {
+    fn bar(&self)
+    // where
+    //     Self: Bar
+    ;
+}