diff --git a/tests/source/chains-visual.rs b/tests/source/chains-visual.rs index 2fd36225881..466f6840887 100644 --- a/tests/source/chains-visual.rs +++ b/tests/source/chains-visual.rs @@ -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(); + } +} diff --git a/tests/target/chains-visual.rs b/tests/target/chains-visual.rs index 8a6e44ed86b..b842d73c99f 100644 --- a/tests/target/chains-visual.rs +++ b/tests/target/chains-visual.rs @@ -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(); + } +}