]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-and-init.rs
implement valtrees as the type-system representation for constant values
[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 borrow of possibly-uninitialized variable: `i`
6 }