diff options
| author | Nick Cameron <nrc@ncameron.org> | 2015-09-05 09:54:46 +1200 |
|---|---|---|
| committer | Nick Cameron <nrc@ncameron.org> | 2015-09-05 09:54:46 +1200 |
| commit | f5ee0f0986f23acb27fabf257e11eb76c6981601 (patch) | |
| tree | aa4d4a6d742a84ac4cb11825082b98c711c636ff | |
| parent | 398416be45ec3a58a78b86d6fa10a9aeb708397b (diff) | |
| parent | ba0e0e6ac1b52cfd5f13458969147b6c7dd6ade8 (diff) | |
Merge pull request #250 from marcusklaas/regtest5
Add regression test for trait reference formatting
| -rw-r--r-- | tests/source/fn-simple.rs | 2 | ||||
| -rw-r--r-- | tests/target/fn-simple.rs | 3 |
2 files changed, 5 insertions, 0 deletions
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<T>(arg: T) -> &SomeType B, C, D, /* pre comment */ E /* last comment */) -> &SomeType { arg(a, b, c, d, e) } + +fn some_func<T:Box<Trait+Bound>>(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<T>(arg: T) -> &SomeType { arg(a, b, c, d, e) } + +fn some_func<T: Box<Trait + Bound>>(val: T) { +} |
