Skip to content

Commit 0afe002

Browse files
committed
Fix broken test
1 parent 88add6c commit 0afe002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/borrowck-autoref-3261.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ impl &X {
1818
fn main() {
1919
let mut x = X(Right(main));
2020
do (&mut x).with |opt| { //~ ERROR illegal borrow
21-
match *opt {
22-
Right(f) => {
21+
match opt {
22+
&Right(f) => {
2323
x = X(Left((0,0)));
2424
f()
2525
},

0 commit comments

Comments
 (0)