tests/indent: improve Rust tests

This commit is contained in:
Jędrzej Boczar 2021-04-18 22:38:25 +02:00 committed by Kiyan
parent 69dda8c09d
commit 1d7e5144ab
16 changed files with 217 additions and 13 deletions

View file

@ -0,0 +1,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
}