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 + ; +}