Add more test for #1586.

This commit is contained in:
uHOOCCOOHu 2017-07-05 09:56:05 +08:00
parent 14a1a08b5e
commit d20c451c2a
No known key found for this signature in database
GPG key ID: 395939F0A802FC4B

View file

@ -103,6 +103,15 @@ fn test10() {
} }
} }
fn test11<F: FnMut() -> i32>(mut f: F) {
loop {
return match f() {
1 => continue,
_ => (),
}
}
}
fn main() { fn main() {
test1(); test1();
test2(); test2();
@ -114,5 +123,6 @@ fn main() {
test8(); test8();
test9(); test9();
test10(); test10();
test11(|| 0);
} }