From 356a0c4b5899549d9459205df6a3ff992cc648fc Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Wed, 6 Jun 2018 10:55:56 +0900 Subject: [PATCH] Add a test for #2746 --- tests/source/impls.rs | 3 +++ tests/target/impls.rs | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/tests/source/impls.rs b/tests/source/impls.rs index 85e0ef0d42b0..fde7ad6d017d 100644 --- a/tests/source/impls.rs +++ b/tests/source/impls.rs @@ -157,3 +157,6 @@ impl Foo { impl<'a, 'b, 'c> 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, {} diff --git a/tests/target/impls.rs b/tests/target/impls.rs index 3b0cb0a30d61..3f9c1f004d1a 100644 --- a/tests/target/impls.rs +++ b/tests/target/impls.rs @@ -222,3 +222,14 @@ impl<'a, 'b, 'c> SomeThing { fn foo() {} } + +// #2746 +impl<'seq1, 'seq2, 'body, 'scope, Channel> + Adc12< + Dual, + MasterRunningDma<'seq1, 'body, 'scope, Channel>, + SlaveRunningDma<'seq2, 'body, 'scope>, + > +where + Channel: DmaChannel, +{}