rust/src/test/compile-fail/alt-vec-mismatch.rs
2013-04-29 20:46:54 -07:00

7 lines
157 B
Rust

fn main() {
match ~"foo" {
['f', 'o', .._] => { } //~ ERROR mismatched type: expected `~str` but found a vector pattern
_ => { }
}
}