mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Add a test fot #2264
This commit is contained in:
parent
97fd517593
commit
b749aa0699
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user