2015-09-02 08:56:37 +12:00
|
|
|
// rustfmt-fn_args_density: Compressed
|
2015-09-01 17:06:41 +12:00
|
|
|
// Test some of the ways function signatures can be customised.
|
|
|
|
|
|
|
|
// Test compressed layout of args.
|
2017-06-12 16:01:41 +12:00
|
|
|
fn foo(
|
|
|
|
a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd,
|
2017-07-13 20:32:46 +09:00
|
|
|
e: Eeeeeeeeeeeeeeeeeee,
|
2017-06-12 16:01:41 +12:00
|
|
|
) {
|
2015-09-01 17:06:41 +12:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo {
|
2017-06-12 16:01:41 +12:00
|
|
|
fn foo(
|
|
|
|
self, a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc,
|
2017-07-13 20:32:46 +09:00
|
|
|
d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee,
|
2017-06-12 16:01:41 +12:00
|
|
|
) {
|
2015-09-01 17:06:41 +12:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
}
|