]> git.lizzy.rs Git - rust.git/blob - tests/target/fn-custom-7.rs
Tidy up and pass tests
[rust.git] / tests / target / fn-custom-7.rs
1 // rustfmt-normalize_comments: true
2 // rustfmt-indent_style: Block
3 // rustfmt-fn_args_density: Vertical
4 // rustfmt-brace_style: AlwaysNextLine
5
6 // Case with only one variable.
7 fn foo(a: u8) -> u8
8 {
9     bar()
10 }
11
12 // Case with 2 variables and some pre-comments.
13 fn foo(
14     a: u8, // Comment 1
15     b: u8, // Comment 2
16 ) -> u8
17 {
18     bar()
19 }
20
21 // Case with 2 variables and some post-comments.
22 fn foo(
23     // Comment 1
24     a: u8,
25     // Comment 2
26     b: u8,
27 ) -> u8
28 {
29     bar()
30 }
31
32 trait Test
33 {
34     fn foo(a: u8)
35     {
36     }
37
38     fn bar(a: u8) -> String
39     {
40     }
41 }