rust/tests/ui/consts/const-eval/issue-64970.rs
2023-01-11 09:32:08 +00:00

16 lines
154 B
Rust

// run-pass
fn main() {
foo(10);
}
fn foo(mut n: i32) {
if false {
n = 0i32;
}
if n > 0i32 {
let _ = 1i32 / n;
}
}