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() {} +}