Skip to content

Commit

Permalink
Add a test for rust-lang#3092
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Oct 14, 2018
1 parent c4a8cdc commit 476992a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/source/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,12 @@ trait Foo<'a> {
impl<'a> Foo<'a> for i32 {
type Bar< 'a > = i32;
}

// #3092
pub mod test {
pub trait ATraitWithALooongName {}
pub trait ATrait
:ATraitWithALooongName + ATraitWithALooongName + ATraitWithALooongName + ATraitWithALooongName
{
}
}
12 changes: 12 additions & 0 deletions tests/target/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,15 @@ trait Foo<'a> {
impl<'a> Foo<'a> for i32 {
type Bar<'a> = i32;
}

// #3092
pub mod test {
pub trait ATraitWithALooongName {}
pub trait ATrait:
ATraitWithALooongName
+ ATraitWithALooongName
+ ATraitWithALooongName
+ ATraitWithALooongName
{
}
}

0 comments on commit 476992a

Please sign in to comment.