]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-and-init.rs
When using value after move, point at span of local
[rust.git] / src / test / ui / borrowck / borrowck-and-init.rs
1 fn main() {
2     let i: isize;
3
4     println!("{}", false && { i = 5; true });
5     println!("{}", i); //~ ERROR use of possibly uninitialized variable: `i`
6 }