summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/borrowck-while-break.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/borrowck-while-break.rs')
-rw-r--r--src/test/ui/borrowck/borrowck-while-break.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-while-break.rs b/src/test/ui/borrowck/borrowck-while-break.rs
deleted file mode 100644
index 7100b7130..000000000
--- a/src/test/ui/borrowck/borrowck-while-break.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-fn test(cond: bool) {
- let v;
- while cond {
- v = 3;
- break;
- }
- println!("{}", v); //~ ERROR E0381
-}
-
-fn main() {
- test(true);
-}