rust/src/test/compile-fail/match-vec-mismatch.rs
2013-11-28 20:27:56 -08:00

7 lines
157 B
Rust

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