Add a test for #3049
This commit is contained in:
parent
cbaed838d5
commit
6dc9b96651
45
tests/source/issue-3049.rs
Normal file
45
tests/source/issue-3049.rs
Normal file
@ -0,0 +1,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 _ = ();
|
||||
})
|
||||
}
|
45
tests/target/issue-3049.rs
Normal file
45
tests/target/issue-3049.rs
Normal file
@ -0,0 +1,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 _ = ();
|
||||
})
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user