From b2d3daccfa882185cc5565ca82861babc1f64dd2 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Thu, 8 Mar 2018 19:08:32 +0900 Subject: [PATCH] Add a test for #2491 --- tests/source/impls.rs | 5 +++++ tests/target/impls.rs | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/tests/source/impls.rs b/tests/source/impls.rs index ca8e486646a1..85e0ef0d42b0 100644 --- a/tests/source/impls.rs +++ b/tests/source/impls.rs @@ -152,3 +152,8 @@ impl Foo { 1 } } + +// #2491 +impl<'a, 'b, 'c> SomeThing for (&'a mut SomethingLong, &'b mut SomethingLong, &'c mut SomethingLong) { + fn foo() {} +} diff --git a/tests/target/impls.rs b/tests/target/impls.rs index 91172b39fe59..0bc28acf7eaa 100644 --- a/tests/target/impls.rs +++ b/tests/target/impls.rs @@ -217,3 +217,14 @@ impl Foo { 1 } } + +// #2491 +impl<'a, 'b, 'c> SomeThing + for ( + &'a mut SomethingLong, + &'b mut SomethingLong, + &'c mut SomethingLong, + ) +{ + fn foo() {} +}