about summary refs log tree commit diff
path: root/src/test/ui/closure-array-break-length.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-07-01 18:31:07 +0100
committervarkor <github@varkor.com>2018-07-02 19:44:27 +0100
commit30fde047804b6555ad982e7d55fea9e54815ea39 (patch)
tree6af4f4cd792efeb22dd9b05ba090e787eefd0588 /src/test/ui/closure-array-break-length.rs
parentb00050f4cf7d602566afd511b66ae6645f92987d (diff)
downloadrust-30fde047804b6555ad982e7d55fea9e54815ea39.tar.gz
rust-30fde047804b6555ad982e7d55fea9e54815ea39.zip
Clean up error messages regarding break/continue inside consts
Diffstat (limited to 'src/test/ui/closure-array-break-length.rs')
-rw-r--r--src/test/ui/closure-array-break-length.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/ui/closure-array-break-length.rs b/src/test/ui/closure-array-break-length.rs
index 727113e328f..8be5b925a39 100644
--- a/src/test/ui/closure-array-break-length.rs
+++ b/src/test/ui/closure-array-break-length.rs
@@ -11,9 +11,7 @@
 fn main() {
     |_: [_; continue]| {}; //~ ERROR: `continue` outside of loop
 
-    while |_: [_; continue]| {} {} //~ ERROR: `break` or `continue` with no label
-    //~^ ERROR: `continue` outside of loop
+    while |_: [_; continue]| {} {} //~ ERROR: `continue` outside of loop
 
-    while |_: [_; break]| {} {} //~ ERROR: `break` or `continue` with no label
-    //~^ ERROR: `break` outside of loop
+    while |_: [_; break]| {} {} //~ ERROR: `break` outside of loop
 }