]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for #3092
authorSeiichi Uchida <seuchida@gmail.com>
Sun, 14 Oct 2018 12:43:35 +0000 (21:43 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Sun, 14 Oct 2018 12:47:50 +0000 (21:47 +0900)
tests/source/trait.rs
tests/target/trait.rs

index 2fa25d0802cf97262e0df39aa3c06312c3088749..d5ee4f0441736aeaae86aeb855b4e2c5f5bec34e 100644 (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
+{
+}
+}
index 2eb2c12aa3056f15109ea1d6044be5eb93d939a6..18747c47fef39a03978173fa5dfc29a469bc933f 100644 (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
+    {
+    }
+}