From: Seiichi Uchida Date: Sun, 14 Oct 2018 12:43:35 +0000 (+0900) Subject: Add a test for #3092 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=476992a15d4e01071ac57cec7c8e54b36e606d46;hp=c4a8cdcdf1e4f574c80f04bc0c5b058c5a83b4f6;p=rust.git Add a test for #3092 --- diff --git a/tests/source/trait.rs b/tests/source/trait.rs index 2fa25d0802c..d5ee4f04417 100644 --- a/tests/source/trait.rs +++ b/tests/source/trait.rs @@ -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 +{ +} +} diff --git a/tests/target/trait.rs b/tests/target/trait.rs index 2eb2c12aa30..18747c47fef 100644 --- a/tests/target/trait.rs +++ b/tests/target/trait.rs @@ -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 + { + } +}