From 476992a15d4e01071ac57cec7c8e54b36e606d46 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sun, 14 Oct 2018 21:43:35 +0900 Subject: [PATCH] Add a test for #3092 --- tests/source/trait.rs | 9 +++++++++ tests/target/trait.rs | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/tests/source/trait.rs b/tests/source/trait.rs index 2fa25d0802cf..d5ee4f044173 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 2eb2c12aa305..18747c47fef3 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 + { + } +}