blob: eb96a48f77d7669bcf548b5245c76e7579ff0425 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
fn foo(mut x: i32) -> i32 {
if x > 10 {
return 10;
} else if x == 10 {
return 9;
} else {
x += 10;
}
if x < 0 {
if x == -1 {
return 0;
}
}
0
}
|