rust/tests/target/configs/chain_width/tiny.rs
2021-04-21 21:27:50 -05:00

27 lines
374 B
Rust

// 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();
}