diff options
| author | bors <bors@rust-lang.org> | 2013-10-02 02:31:29 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-02 02:31:29 -0700 |
| commit | d00c9269dce3a7925d7d0bf5edb64b3c6747c6af (patch) | |
| tree | 2446c316e34164e1b0795fb909de8951d503fe20 /src/test/compile-fail/loop-as-continue.rs | |
| parent | 97cd495aca946d088e103d364d3be34f2bfaf1e1 (diff) | |
| parent | 4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (diff) | |
auto merge of #9665 : alexcrichton/rust/snapshot, r=brson
Uses the new snapshots to kill the old `loop` and introduce the new `continue`.
Diffstat (limited to 'src/test/compile-fail/loop-as-continue.rs')
| -rw-r--r-- | src/test/compile-fail/loop-as-continue.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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` + } +} |
