diff options
Diffstat (limited to 'src/test/compile-fail/liveness-while-cond.rs')
| -rw-r--r-- | src/test/compile-fail/liveness-while-cond.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/compile-fail/liveness-while-cond.rs b/src/test/compile-fail/liveness-while-cond.rs new file mode 100644 index 00000000000..a0a90e9550c --- /dev/null +++ b/src/test/compile-fail/liveness-while-cond.rs @@ -0,0 +1,4 @@ +fn main() { + let x: bool; + while x { } //! ERROR use of possibly uninitialized variable: `x` +} |
