summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/chain_width/tiny.rs
blob: 960d245f8a12cb450389199e793d96260fbef33b (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
// rustfmt-chain_width: 20

struct Fluent {}

impl Fluent {
    fn blorp(&self) -> &Self {
        self
    }
}

fn main() {
    let test = Fluent {};

    // should not be wrapped
    test.blorp();
    test.blorp().blorp();

    // should be wrapped
    test.blorp()
        .blorp()
        .blorp();
    test.blorp()
        .blorp()
        .blorp()
        .blorp();
}