summary refs log tree commit diff
path: root/src/test/run-pass/lazy-init.rs
blob: 1d7001b49ee8263df0b1dce66a6715466a22d4ce (plain)
1
2
3
4
5
6
#![allow(unused_mut)]


fn foo(x: isize) { println!("{}", x); }

pub fn main() { let mut x: isize; if 1 > 2 { x = 12; } else { x = 10; } foo(x); }