]> git.lizzy.rs Git - rust.git/commitdiff
Add a visual fn type alias test
authorIvan Molodetskikh <yalterz@gmail.com>
Tue, 11 Sep 2018 09:34:21 +0000 (12:34 +0300)
committerIvan Molodetskikh <yalterz@gmail.com>
Tue, 11 Sep 2018 09:34:21 +0000 (12:34 +0300)
tests/source/visual-fn-type.rs [new file with mode: 0644]
tests/target/visual-fn-type.rs [new file with mode: 0644]

diff --git a/tests/source/visual-fn-type.rs b/tests/source/visual-fn-type.rs
new file mode 100644 (file)
index 0000000..67dad5f
--- /dev/null
@@ -0,0 +1,10 @@
+// rustfmt-indent_style: Visual
+type CNodeSetAtts = unsafe extern "C" fn(node: *const RsvgNode,
+                                         node_impl: *const RsvgCNodeImpl,
+                                         handle: *const RsvgHandle,
+                                         pbag: *const PropertyBag)
+                                         ;
+type CNodeDraw = unsafe extern "C" fn(node: *const RsvgNode,
+                                      node_impl: *const RsvgCNodeImpl,
+                                      draw_ctx: *const RsvgDrawingCtx,
+                                      dominate: i32);
diff --git a/tests/target/visual-fn-type.rs b/tests/target/visual-fn-type.rs
new file mode 100644 (file)
index 0000000..052acde
--- /dev/null
@@ -0,0 +1,9 @@
+// rustfmt-indent_style: Visual
+type CNodeSetAtts = unsafe extern "C" fn(node: *const RsvgNode,
+                                         node_impl: *const RsvgCNodeImpl,
+                                         handle: *const RsvgHandle,
+                                         pbag: *const PropertyBag);
+type CNodeDraw = unsafe extern "C" fn(node: *const RsvgNode,
+                                      node_impl: *const RsvgCNodeImpl,
+                                      draw_ctx: *const RsvgDrawingCtx,
+                                      dominate: i32);