navid/haze / master / 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)
}