From ba9d64aba507b71846d058531c554845cba9f3f1 Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Thu, 14 Apr 2016 20:41:23 +0200 Subject: [PATCH] Add regression test for issue 770 --- tests/target/issue-770.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/target/issue-770.rs diff --git a/tests/target/issue-770.rs b/tests/target/issue-770.rs new file mode 100644 index 00000000000..5fbedd7b734 --- /dev/null +++ b/tests/target/issue-770.rs @@ -0,0 +1,10 @@ +fn main() { + if false { + if false { + } else { + // A let binding here seems necessary to trigger it. + let _ = (); + } + } else if let false = false { + } +}