Is it possible to match the end of a slice with slice patterns? Something like:
fn foo(s: &[char]) {
match s {
['a', 'b'] => (),
[.. 'b', 'c'] => (),
_ => (),
}
}