0cb294f05c
fn_args_layout is now deprecated. This option was renamed to better communicate that it affects the layout of parameters in function signatures and not the layout of arguments in function calls. Because the `fn_args_layout` is a stable option the renamed option is also stable, however users who set `fn_args_layout` will get a warning message letting them know that the option has been renamed.
14 lines
454 B
Rust
14 lines
454 B
Rust
// rustfmt-fn_params_layout: Compressed
|
|
// Test some of the ways function signatures can be customised.
|
|
|
|
// Test compressed layout of args.
|
|
fn foo(a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee) {
|
|
foo();
|
|
}
|
|
|
|
impl Foo {
|
|
fn foo(self, a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee) {
|
|
foo();
|
|
}
|
|
}
|