]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/impls.rs
Fix up tests for empty impls
[rust.git] / tests / target / impls.rs
index 2175b5d7bd9d315a018dc4f30387e6262a5d332b..390f1a12cd3090eccebfcf4421dd4d46561966fd 100644 (file)
@@ -48,11 +48,7 @@ fn foo() {
     }
 }
 
-impl<T> Foo for Bar<T>
-where
-    T: Baz,
-{
-}
+impl<T> Foo for Bar<T> where T: Baz {}
 
 impl<T> Foo for Bar<T>
 where
@@ -133,22 +129,16 @@ fn eq(&self, other: &Self) {
         }
     }
 
-    impl<T> PartialEq for S<T>
-    where
-        T: PartialEq,
-    {
-    }
+    impl<T> PartialEq for S<T> where T: PartialEq {}
 }
 
 impl<BorrowType, K, V, NodeType, HandleType>
     Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType>
-{
-}
+{}
 
 impl<BorrowType, K, V, NodeType, HandleType> PartialEq
     for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType>
-{
-}
+{}
 
 mod x {
     impl<A, B, C, D> Foo
@@ -157,8 +147,7 @@ impl<A, B, C, D> Foo
         B: 'static,
         C: 'static,
         D: 'static,
-    {
-    }
+    {}
 }
 
 impl<ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNodeFoo>
@@ -230,3 +219,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,
+{}