From ba0e0e6ac1b52cfd5f13458969147b6c7dd6ade8 Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Fri, 4 Sep 2015 13:51:00 +0200 Subject: [PATCH] Add regression test for trait reference formatting --- tests/source/fn-simple.rs | 2 ++ tests/target/fn-simple.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs index b5682d36cfa..b71fdc47875 100644 --- a/tests/source/fn-simple.rs +++ b/tests/source/fn-simple.rs @@ -17,3 +17,5 @@ fn generic(arg: T) -> &SomeType B, C, D, /* pre comment */ E /* last comment */) -> &SomeType { arg(a, b, c, d, e) } + +fn some_func>(val:T){} diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs index dbb4f82924a..899a73d5157 100644 --- a/tests/target/fn-simple.rs +++ b/tests/target/fn-simple.rs @@ -27,3 +27,6 @@ fn generic(arg: T) -> &SomeType { arg(a, b, c, d, e) } + +fn some_func>(val: T) { +}