]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/source/configs/chain_width/small.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / tools / rustfmt / tests / source / configs / chain_width / small.rs
1 // rustfmt-chain_width: 40
2
3 struct Fluent {}
4
5 impl Fluent {
6 fn blorp(&self) -> &Self {
7 self
8 }
9 }
10
11 fn main() {
12 let test = Fluent {};
13
14 // should not be wrapped
15 test.blorp();
16 test.blorp().blorp();
17 test.blorp().blorp().blorp();
18 test.blorp().blorp().blorp().blorp();
19
20 // should be wrapped
21 test.blorp().blorp().blorp().blorp().blorp();
22 test.blorp().blorp().blorp().blorp().blorp().blorp();
23 }