rust/tests/run-pass/match_slice.rs

9 lines
114 B
Rust
Raw Normal View History

2016-09-27 04:10:25 -05:00
fn main() {
let x = "hello";
match x {
"foo" => {},
"bar" => {},
_ => {},
}
}