mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
parent
e9a3b7c4ee
commit
87f7eaa2c8
@ -238,3 +238,18 @@ fn issue3670() {
|
||||
let _ = elem.or_else(|| *iter.next()?);
|
||||
}
|
||||
}
|
||||
|
||||
fn issue771() {
|
||||
let mut a = 100;
|
||||
let b = Some(true);
|
||||
loop {
|
||||
if a > 10 {
|
||||
break;
|
||||
}
|
||||
|
||||
match b {
|
||||
Some(_) => a = 0,
|
||||
None => break,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user