12 lines
196 B
Rust
12 lines
196 B
Rust
fn main() {
|
|
let msg;
|
|
match Some(~"Hello") { //~ ERROR illegal borrow
|
|
Some(ref m) => {
|
|
msg = m;
|
|
},
|
|
None => { fail }
|
|
}
|
|
io::println(*msg);
|
|
}
|
|
|