Add a test for #3049

This commit is contained in:
Ivan Molodetskikh 2018-10-06 11:20:46 +03:00
parent cbaed838d5
commit 6dc9b96651
No known key found for this signature in database
GPG Key ID: 02CE38DA47E9D691
2 changed files with 90 additions and 0 deletions

View 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 _ = ();
})
}

View 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 _ = ();
})
}