From 436f8663e3a0ff1b31374324fde3c1611b8c3a4b Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Fri, 11 Sep 2015 23:32:13 +0200 Subject: [PATCH] Add regression test for bad continue span --- tests/source/expr.rs | 8 ++++++++ tests/target/expr.rs | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/tests/source/expr.rs b/tests/source/expr.rs index bf9a8359aad..083715dc8e7 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -121,3 +121,11 @@ fn issue227() { let handler = box DocumentProgressHandler::new(addr, DocumentProgressTask::DOMContentLoaded); } } + +fn issue184(source: &str) { + for c in source.chars() { + if index < 'a' { + continue; + } + } +} diff --git a/tests/target/expr.rs b/tests/target/expr.rs index d24d463c2c2..9017fd8bee0 100644 --- a/tests/target/expr.rs +++ b/tests/target/expr.rs @@ -158,3 +158,11 @@ fn issue227() { DocumentProgressTask::DOMContentLoaded); } } + +fn issue184(source: &str) { + for c in source.chars() { + if index < 'a' { + continue; + } + } +}