about summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-while-cond.rs
blob: a0a90e9550c39f81cd691e17ffb332e9b93fa8ce (plain)
1
2
3
4
fn main() {
    let x: bool;
    while x { } //! ERROR use of possibly uninitialized variable: `x`
}