summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-uninit.rs
blob: 59bb9e847dcd8c8e268bf3a1fa43bd15feece208 (plain)
1
2
3
4
5
6
fn foo(x: int) { log(debug, x); }

fn main() {
	let x: int;
	foo(x); //~ ERROR use of possibly uninitialized variable: `x`
}