Add a test for #2746

This commit is contained in:
Seiichi Uchida 2018-06-06 10:55:56 +09:00
parent a4db62368b
commit 356a0c4b58
2 changed files with 14 additions and 0 deletions

View File

@ -157,3 +157,6 @@ fn f(
impl<'a, 'b, 'c> SomeThing<Something> for (&'a mut SomethingLong, &'b mut SomethingLong, &'c mut SomethingLong) {
fn foo() {}
}
// #2746
impl<'seq1, 'seq2, 'body, 'scope, Channel> Adc12< Dual, MasterRunningDma<'seq1, 'body, 'scope, Channel>, SlaveRunningDma<'seq2, 'body, 'scope>, > where Channel: DmaChannel, {}

View File

@ -222,3 +222,14 @@ impl<'a, 'b, 'c> SomeThing<Something>
{
fn foo() {}
}
// #2746
impl<'seq1, 'seq2, 'body, 'scope, Channel>
Adc12<
Dual,
MasterRunningDma<'seq1, 'body, 'scope, Channel>,
SlaveRunningDma<'seq2, 'body, 'scope>,
>
where
Channel: DmaChannel,
{}