]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // rustfmt-normalize_comments: true |
2 | ||
3 | fn foo() { | |
4 | foo(); | |
5 | } | |
6 | ||
7 | fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) { | |
8 | foo(); | |
9 | } | |
10 | ||
11 | fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) { | |
12 | bar(); | |
13 | } | |
14 | ||
15 | fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String { | |
16 | foo(); | |
17 | } | |
18 | ||
19 | fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) -> String { | |
20 | bar(); | |
21 | } | |
22 | ||
23 | fn foo(a: u8 /* Comment 1 */, b: u8 /* Comment 2 */) -> u8 { | |
24 | bar() | |
25 | } | |
26 | ||
27 | fn foo(a: u8 /* Comment 1 */, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee /* Comment 2 */) -> u8 { | |
28 | bar() | |
29 | } | |
30 | ||
31 | fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) -> String where X: Fooooo, Y: Baaar { | |
32 | bar(); | |
33 | } | |
34 | ||
35 | fn foo() -> T { | |
36 | foo(); | |
37 | } | |
38 | ||
39 | fn foo() -> T where X: Foooo, Y: Baaar { | |
40 | foo(); | |
41 | } | |
42 | ||
43 | fn foo() where X: Foooo { | |
44 | } | |
45 | ||
46 | fn foo() where X: Foooo, Y: Baaar { | |
47 | } | |
48 | ||
49 | fn foo() -> (Loooooooooooooooooooooong, Reeeeeeeeeeeeeeeeeeeeeeeeturn, iiiiiiiiis, Looooooooooooooooong) { | |
50 | foo(); | |
51 | } | |
52 | ||
53 | fn foo<g: G>() { | |
54 | foo(); | |
55 | } | |
56 | ||
57 | fn foo<L: Loooooooooooooooooooooong, G: Geeeeeeeeeeeneric, I: iiiiiiiiis, L: Looooooooooooooooong>() { | |
58 | foo(); | |
59 | } | |
60 | ||
61 | fn foo<L: Loooooooooooooooooooong, G: Geeeeeeeeeeneric, I: iiiiiiiiis, L: Loooooooooooooooong>() { | |
62 | foo(); | |
63 | } | |
64 | ||
65 | trait Test { | |
66 | fn foo(a: u8) {} | |
67 | ||
68 | fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) -> String {} | |
69 | } | |
70 | ||
71 | fn foo<L: Loooooooooooooooooooong, G: Geeeeeeeeeeneric, I: iiiiiiiiis, L: Loooooooooooooooong>(a: Aaaaaaaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd) { | |
72 | foo(); | |
73 | } | |
74 | ||
75 | fn foo() -> (Looooooooooooooooooooooooooong, Reeeeeeeeeeeeeeeeeeeeeeeeeeeeeturn, iiiiiiiiiiiiiis, Loooooooooooooooooooooong) { | |
76 | foo(); | |
77 | } |