From 4af849bc12e8a2ec592074b1470464efa59f06bf Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 1 Oct 2013 14:41:59 -0700 Subject: Obsolete parsing 'loop' as 'continue' --- src/test/compile-fail/loop-as-continue.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/compile-fail/loop-as-continue.rs (limited to 'src/test/compile-fail/loop-as-continue.rs') diff --git a/src/test/compile-fail/loop-as-continue.rs b/src/test/compile-fail/loop-as-continue.rs new file mode 100644 index 00000000000..e4273fdfeff --- /dev/null +++ b/src/test/compile-fail/loop-as-continue.rs @@ -0,0 +1,15 @@ +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +fn main() { + loop { + loop //~ ERROR: `loop` instead of `continue` + } +} -- cgit 1.4.1-3-g733a5