Add a test for #2491

This commit is contained in:
Seiichi Uchida 2018-03-08 19:08:32 +09:00
parent a6b574bfa7
commit b2d3daccfa
2 changed files with 16 additions and 0 deletions

View File

@ -152,3 +152,8 @@ impl Foo {
1
}
}
// #2491
impl<'a, 'b, 'c> SomeThing<Something> for (&'a mut SomethingLong, &'b mut SomethingLong, &'c mut SomethingLong) {
fn foo() {}
}

View File

@ -217,3 +217,14 @@ impl Foo {
1
}
}
// #2491
impl<'a, 'b, 'c> SomeThing<Something>
for (
&'a mut SomethingLong,
&'b mut SomethingLong,
&'c mut SomethingLong,
)
{
fn foo() {}
}