rust/src/test/compile-fail/match-vec-mismatch.rs

7 lines
158 B
Rust
Raw Normal View History

fn main() {
match ~"foo" {
2013-04-30 16:17:19 -07:00
['f', 'o', .._] => { } //~ ERROR mismatched types: expected `~str` but found a vector pattern
_ => { }
}
}