mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
20 lines
483 B
Rust
20 lines
483 B
Rust
// rustfmt-fn_args_density: 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();
|
|
}
|
|
}
|