From 2f03a31e1a4e551ba8ba14efca3e59dab2fedd9a Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 11 Sep 2018 12:34:21 +0300 Subject: [PATCH] Add a visual fn type alias test --- tests/source/visual-fn-type.rs | 10 ++++++++++ tests/target/visual-fn-type.rs | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/source/visual-fn-type.rs create mode 100644 tests/target/visual-fn-type.rs diff --git a/tests/source/visual-fn-type.rs b/tests/source/visual-fn-type.rs new file mode 100644 index 00000000000..67dad5fa460 --- /dev/null +++ b/tests/source/visual-fn-type.rs @@ -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 index 00000000000..052acde0209 --- /dev/null +++ b/tests/target/visual-fn-type.rs @@ -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); -- 2.44.0