summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for-loop-while/loop-break-cont-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/for-loop-while/loop-break-cont-1.rs')
-rw-r--r--src/test/ui/for-loop-while/loop-break-cont-1.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/for-loop-while/loop-break-cont-1.rs b/src/test/ui/for-loop-while/loop-break-cont-1.rs
new file mode 100644
index 000000000..f207746f0
--- /dev/null
+++ b/src/test/ui/for-loop-while/loop-break-cont-1.rs
@@ -0,0 +1,9 @@
+// run-pass
+
+pub fn main() {
+ let _i = 0_usize;
+ loop {
+ break;
+ }
+ assert!(true);
+}