File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ fn let_wild_gets_moved_expr() {
20
20
fn match_moved_expr_to_wild ( ) {
21
21
let m = M ;
22
22
drop ( m) ;
23
- match m { _ => { } } // #53114: should eventually be accepted too
23
+ match m { _ => { } } // #53114: accepted too
24
24
25
25
let mm = ( M , M ) ; // variation on above with `_` in substructure
26
26
match mm { ( _x, _) => { } }
@@ -31,7 +31,7 @@ fn match_moved_expr_to_wild() {
31
31
fn if_let_moved_expr_to_wild ( ) {
32
32
let m = M ;
33
33
drop ( m) ;
34
- if let _ = m { } // #53114: should eventually be accepted too
34
+ if let _ = m { } // #53114: accepted too
35
35
36
36
let mm = ( M , M ) ; // variation on above with `_` in substructure
37
37
if let ( _x, _) = mm { }
Original file line number Diff line number Diff line change
1
+ // check-pass
2
+
3
+ enum Void { }
4
+
5
+ fn main ( ) {
6
+ let x: Void ;
7
+ match x {
8
+ _ if { loop { } } => ( ) ,
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments