From 0afe0027574cdaa65e3d3947eef976ac84d2cf40 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 14 Dec 2012 15:38:43 -0800 Subject: [PATCH] Fix broken test --- src/test/compile-fail/borrowck-autoref-3261.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/compile-fail/borrowck-autoref-3261.rs b/src/test/compile-fail/borrowck-autoref-3261.rs index 6f2aa5d681a0b..2f46cc9fc0341 100644 --- a/src/test/compile-fail/borrowck-autoref-3261.rs +++ b/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() },