16 lines
146 B
Rust
16 lines
146 B
Rust
|
// run-pass
|
||
|
|
||
|
fn main() {
|
||
|
foo(10);
|
||
|
}
|
||
|
|
||
|
fn foo(mut n: i32) {
|
||
|
if false {
|
||
|
n = 0i32;
|
||
|
}
|
||
|
|
||
|
if n > 0i32 {
|
||
|
1i32 / n;
|
||
|
}
|
||
|
}
|