Fix broken test

This commit is contained in:
Brian Anderson 2012-12-14 15:38:43 -08:00
parent 88add6cbac
commit 0afe002757

View File

@ -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()
},