1 2 3 4 5 6 7 8 9 10 11
fn foo(s: &r/uint) -> bool { match s { &3 => true, _ => false } } fn main() { assert foo(&3); assert !foo(&4); }