navid/haze / ea08ceb46539df9cf3ac396bc0bd66fc4f6b9adc630e1596e79b8e4d3101673a / samples/baseline_2.5/cast_void_error.hz

cast_void_error.hz

← samples/baseline_2.5 · 123 bytes · raw · download

// There is no value representation for void.

fn main() {
    var x i32 = 1
    var y void = cast[void](x)
    print(y)
}