]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/lazy-init.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / borrowck / lazy-init.rs
1 // run-pass
2
3 #![allow(unused_mut)]
4
5
6 fn foo(x: isize) { println!("{}", x); }
7
8 pub fn main() { let mut x: isize; if 1 > 2 { x = 12; } else { x = 10; } foo(x); }