1 // rustfmt-fn_args_density: Vertical
3 // Empty list should stay on one line.
8 // A single argument should stay on the same line.
9 fn do_bar(a: u8) -> u8 {
13 // Multiple arguments should each get their own line.
19 closure: &Fn(i32) -> i32,
21 // This feature should not affect closures.
22 let bar = |x: i32, y: i32| -> i32 { x + y };
26 // If the first argument doesn't fit on the same line with the function name,
27 // the whole list should probably be pushed to the next line with hanging
28 // indent. That's not what happens though, so check current behaviour instead.
29 // In any case, it should maintain single argument per line.
30 fn do_this_that_and_the_other_thing(
31 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: u8,