2022-04-27 21:59:55 +01:00
|
|
|
pub fn main() void {
|
|
|
|
var i: u32 = 352;
|
|
|
|
i /= 7; // i = 50
|
2023-11-11 07:27:31 +00:00
|
|
|
const result: u32 = foo(i, 7);
|
2022-04-27 21:59:55 +01:00
|
|
|
if (result != 7) unreachable;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
fn foo(x: u32, y: u32) u32 {
|
|
|
|
return x / y;
|
|
|
|
}
|
|
|
|
|
|
|
|
// run
|
|
|
|
//
|