rust/src/test/run-pass/borrowed-ptr-pattern-3.rs
Tim Chevalier 53ce42dc4f Implement &-patterns
Closes #2855
2012-09-07 17:09:07 -07:00

10 lines
103 B
Rust

fn foo<T>(s: &r/uint) {
match s {
&3 => fail ~"oh",
_ => ()
}
}
fn main() {
}