Permalink
Browse files

Fix broken test

  • Loading branch information...
1 parent 88add6c commit 0afe0027574cdaa65e3d3947eef976ac84d2cf40 @brson brson committed Dec 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/compile-fail/borrowck-autoref-3261.rs
@@ -18,8 +18,8 @@ impl &X {
fn main() {
let mut x = X(Right(main));
do (&mut x).with |opt| { //~ ERROR illegal borrow
- match *opt {
- Right(f) => {
+ match opt {
+ &Right(f) => {
x = X(Left((0,0)));
f()
},

0 comments on commit 0afe002

Please sign in to comment.