]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/lazy-init.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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); }