rust/tests/ui/borrowck/borrowck-and-init.rs

7 lines
118 B
Rust

fn main() {
let i: isize;
println!("{}", false && { i = 5; true });
println!("{}", i); //~ ERROR E0381
}