summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3049.rs
blob: fad15435433d10bb71e3ff2e50fae399973b1b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// rustfmt-indent_style: Visual
fn main() {
    something.aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .bench_function(|| {
                 let x = hello();
             });

    something.aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .bench_function(arg, || {
                 let x = hello();
             });

    something.aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .aaaaaaaaaaaa()
             .bench_function(arg,
                             || {
                                 let x = hello();
                             },
                             arg);

    AAAAAAAAAAA.function(|| {
                   let _ = ();
               });

    AAAAAAAAAAA.chain().function(|| {
                           let _ = ();
                       })
}