]> git.lizzy.rs Git - rust.git/blob - tests/target/fn-custom-4.rs
Support where clauses on the same line as the function decl where it all fits on...
[rust.git] / tests / target / fn-custom-4.rs
1 // rustfmt-where_pred_indent: Tabbed
2 // rustfmt-where_density: Compressed
3 // Test different indents.
4
5 fn qux()
6     where X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
7         X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
8         X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
9         X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT
10 {
11     baz();
12 }
13
14 fn qux() where X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT {
15     baz();
16 }
17
18 fn qux(a: Aaaaaaaaaaaaaaaaa)
19     where X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
20         X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT
21 {
22     baz();
23 }