diff options
Diffstat (limited to 'tests/ui/borrowck/borrowck-while-cond.rs')
| -rw-r--r-- | tests/ui/borrowck/borrowck-while-cond.rs | 4 |
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 +} |
