Add a test fot #2264

This commit is contained in:
Seiichi Uchida 2017-12-10 23:38:30 +09:00
parent 97fd517593
commit b749aa0699
2 changed files with 28 additions and 0 deletions

View file

@ -143,3 +143,17 @@ fn issue1434() {
})?;
}
}
fn issue2264() {
{
something.function()
.map(|| {
if let a_very_very_very_very_very_very_very_very_long_variable =
compute_this_variable()
{
println!("Hello");
}
})
.collect();
}
}

View file

@ -143,3 +143,17 @@ fn issue1434() {
})?;
}
}
fn issue2264() {
{
something.function()
.map(|| {
if let a_very_very_very_very_very_very_very_very_long_variable =
compute_this_variable()
{
println!("Hello");
}
})
.collect();
}
}