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 c12748f commit b499b7dCopy full SHA for b499b7d
tests/ui/needless_return.fixed
@@ -307,4 +307,13 @@ mod issue10049 {
307
}
308
309
310
+fn test_match_as_stmt() {
311
+ let x = 9;
312
+ match x {
313
+ 1 => 2,
314
+ 2 => return,
315
+ _ => 0,
316
+ };
317
+}
318
+
319
fn main() {}
tests/ui/needless_return.rs
@@ -317,4 +317,13 @@ mod issue10049 {
320
321
322
323
324
325
326
327
328
329
0 commit comments