On 8/2/12 7:04 PM, Kevin Cantu wrote:
Why wouldn't that fit in? I'm missing something here.
Because ordinarily a semicolon means that the value is returned, but in this case it wouldn't.
A clearer example would probably be:
let x = match foo {
'a' => 1;
'b' => 2;
'c' => 3;
}
log!("%d", x);
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
