Skip to content

Commit 724be29

Browse files
authored
Merge pull request #644 from matthewjasper/no-two-phase-matches
Remove test of two-phase borrows in match
2 parents fa4c040 + 5a8a153 commit 724be29

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/run-pass/2phase.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ fn two_phase_overlapping2() {
4343
}
4444
*/
4545

46-
fn match_two_phase() {
47-
let mut x = 3;
48-
match x {
49-
ref mut y if { let _val = x; let _val = *y; true } => {},
50-
_ => (),
51-
}
52-
}
53-
5446
fn with_interior_mutability() {
5547
use std::cell::Cell;
5648

@@ -76,7 +68,6 @@ fn main() {
7668
two_phase2();
7769
two_phase3(false);
7870
two_phase3(true);
79-
match_two_phase();
8071
with_interior_mutability();
8172
//FIXME: enable these, or remove them, depending on how https://github.com/rust-lang/rust/issues/56254 gets resolved
8273
//two_phase_overlapping1();

0 commit comments

Comments
 (0)