Add a test for #3092

This commit is contained in:
Seiichi Uchida 2018-10-14 21:43:35 +09:00
parent c4a8cdcdf1
commit 476992a15d
2 changed files with 21 additions and 0 deletions

View File

@ -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
{
}
}

View File

@ -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
{
}
}