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