2012-08-17 17:30:29 -07:00
|
|
|
fn main() {
|
|
|
|
let msg;
|
2012-08-20 12:23:37 -07:00
|
|
|
match Some(~"Hello") { //~ ERROR illegal borrow
|
|
|
|
Some(ref m) => {
|
2012-08-17 17:30:29 -07:00
|
|
|
msg = m;
|
|
|
|
},
|
2012-08-20 12:23:37 -07:00
|
|
|
None => { fail }
|
2012-08-17 17:30:29 -07:00
|
|
|
}
|
|
|
|
io::println(*msg);
|
|
|
|
}
|
|
|
|
|