We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a3b7c commit 87f7eaaCopy full SHA for 87f7eaa
tests/ui/while_loop.rs
@@ -238,3 +238,18 @@ fn issue3670() {
238
let _ = elem.or_else(|| *iter.next()?);
239
}
240
241
+
242
+fn issue771() {
243
+ let mut a = 100;
244
+ let b = Some(true);
245
+ loop {
246
+ if a > 10 {
247
+ break;
248
+ }
249
250
+ match b {
251
+ Some(_) => a = 0,
252
+ None => break,
253
254
255
+}
0 commit comments