Merge pull request #250 from marcusklaas/regtest5
Add regression test for trait reference formatting
This commit is contained in:
commit
f5ee0f0986
2 changed files with 5 additions and 0 deletions
|
@ -17,3 +17,5 @@ fn generic<T>(arg: T) -> &SomeType
|
||||||
B, C, D, /* pre comment */ E /* last comment */) -> &SomeType {
|
B, C, D, /* pre comment */ E /* last comment */) -> &SomeType {
|
||||||
arg(a, b, c, d, e)
|
arg(a, b, c, d, e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn some_func<T:Box<Trait+Bound>>(val:T){}
|
||||||
|
|
|
@ -27,3 +27,6 @@ fn generic<T>(arg: T) -> &SomeType
|
||||||
{
|
{
|
||||||
arg(a, b, c, d, e)
|
arg(a, b, c, d, e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn some_func<T: Box<Trait + Bound>>(val: T) {
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue