Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Dec 14, 2012
1 parent 88add6c commit 0afe002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/borrowck-autoref-3261.rs
Expand Up @@ -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()
},
Expand Down

0 comments on commit 0afe002

Please sign in to comment.