Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 476992a

Browse files
committed
Add a test for rust-lang#3092
1 parent c4a8cdc commit 476992a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

tests/source/trait.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,12 @@ trait Foo<'a> {
106106
impl<'a> Foo<'a> for i32 {
107107
type Bar< 'a > = i32;
108108
}
109+
110+
// #3092
111+
pub mod test {
112+
pub trait ATraitWithALooongName {}
113+
pub trait ATrait
114+
:ATraitWithALooongName + ATraitWithALooongName + ATraitWithALooongName + ATraitWithALooongName
115+
{
116+
}
117+
}

tests/target/trait.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,15 @@ trait Foo<'a> {
144144
impl<'a> Foo<'a> for i32 {
145145
type Bar<'a> = i32;
146146
}
147+
148+
// #3092
149+
pub mod test {
150+
pub trait ATraitWithALooongName {}
151+
pub trait ATrait:
152+
ATraitWithALooongName
153+
+ ATraitWithALooongName
154+
+ ATraitWithALooongName
155+
+ ATraitWithALooongName
156+
{
157+
}
158+
}

0 commit comments

Comments
 (0)