2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 05:20:28 -05:00
|
|
|
#![allow(unused_mut)]
|
2010-07-08 09:33:25 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn foo(x: isize) { println!("{}", x); }
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn main() { let mut x: isize; if 1 > 2 { x = 12; } else { x = 10; } foo(x); }
|