Skip to content

Commit

Permalink
Add test case for issue 6127
Browse files Browse the repository at this point in the history
  • Loading branch information
ytmimi committed Mar 30, 2024
1 parent 1b464f9 commit 2296537
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/source/issue_6127.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
trait Foo:
Fn(
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
) -> ReallyLongTypeName
{
}


trait Bar:
Fn(
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
) -> ReallyLongTypeName + Debug + Clone
{
}

trait FooBar:
Clone + Debug + Fn(
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
) -> ReallyLongTypeName
{
}
33 changes: 33 additions & 0 deletions tests/target/issue_6127.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
trait Foo:
Fn(
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
) -> ReallyLongTypeName
{
}

trait Bar:
Fn(
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
) -> ReallyLongTypeName
+ Debug
+ Clone
{
}

trait FooBar:
Clone
+ Debug
+ Fn(
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
ReallyLongTypeName,
) -> ReallyLongTypeName
{
}

0 comments on commit 2296537

Please sign in to comment.