]> git.lizzy.rs Git - rust.git/blob - tests/target/fn-custom-7.rs
Fix long generic indent
[rust.git] / tests / target / fn-custom-7.rs
1 // rustfmt-fn_args_layout: BlockAlways
2 // rustfmt-fn_args_density: Vertical
3 // rustfmt-fn_arg_indent: Tabbed
4 // rustfmt-fn_brace_style: AlwaysNextLine
5
6 // Case with only one variable.
7 fn foo(
8     a: u8
9 ) -> u8
10 {
11     bar()
12 }
13
14 // Case with 2 variables and some pre-comments.
15 fn foo(
16     a: u8, // Comment 1
17     b: u8 // Comment 2
18 ) -> u8
19 {
20     bar()
21 }
22
23 // Case with 2 variables and some post-comments.
24 fn foo(
25     // Comment 1
26     a: u8,
27     // Comment 2
28     b: u8
29 ) -> u8
30 {
31     bar()
32 }
33
34 trait Test {
35     fn foo(
36         a: u8
37     )
38     {
39     }
40
41     fn bar(
42         a: u8
43     ) -> String
44     {
45     }
46 }