Add more test for #1586.
This commit is contained in:
parent
14a1a08b5e
commit
d20c451c2a
1 changed files with 10 additions and 0 deletions
|
@ -103,6 +103,15 @@ fn test10() {
|
|||
}
|
||||
}
|
||||
|
||||
fn test11<F: FnMut() -> i32>(mut f: F) {
|
||||
loop {
|
||||
return match f() {
|
||||
1 => continue,
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
test1();
|
||||
test2();
|
||||
|
@ -114,5 +123,6 @@ fn main() {
|
|||
test8();
|
||||
test9();
|
||||
test10();
|
||||
test11(|| 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue