rust/tests/ui/borrowck/borrowck-or-init.rs
2023-01-11 09:32:08 +00:00

7 lines
118 B
Rust

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