rust/tests/ui/borrowck/borrowck-while-cond.rs

5 lines
63 B
Rust

fn main() {
let x: bool;
while x { } //~ ERROR E0381
}