Merge pull request #250 from marcusklaas/regtest5

Add regression test for trait reference formatting
This commit is contained in:
Nick Cameron 2015-09-05 09:54:46 +12:00
commit f5ee0f0986
2 changed files with 5 additions and 0 deletions

View File

@ -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){}

View File

@ -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) {
}