rust/tests/ui/inline-const/uninit_local.rs

7 lines
122 B
Rust
Raw Permalink Normal View History

fn main() {
let _my_usize = const {
let x: bool;
while x {} //~ ERROR: `x` isn't initialized
};
}