about summary refs log tree commit diff
path: root/tests/ui/borrowck/borrowck-while-cond.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/borrowck-while-cond.rs')
-rw-r--r--tests/ui/borrowck/borrowck-while-cond.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/borrowck/borrowck-while-cond.rs b/tests/ui/borrowck/borrowck-while-cond.rs
new file mode 100644
index 00000000000..62a9bdd2020
--- /dev/null
+++ b/tests/ui/borrowck/borrowck-while-cond.rs
@@ -0,0 +1,4 @@
+fn main() {
+    let x: bool;
+    while x { } //~ ERROR E0381
+}