Add regression test for trait reference formatting

This commit is contained in:
Marcus Klaas 2015-09-04 13:51:00 +02:00
parent 17302f8967
commit ba0e0e6ac1
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) {
}