Closed
Description
merge.rs:
fn match_vecs<'a, T>(l1: &'a [T], l2: &'a [T]) {
match (l1, l2) {
([], []) => println!("both empty"),
([], [hd, ..tl]) | ([hd, ..tl], []) => println!("one empty"),
([hd1, ..tl1], [hd2, ..tl2]) => println!("both nonempty"),
}
}
fn main() {}
$ rustc merge.rs
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
Ok(task 'rustc' failed at 'called `Option::unwrap()` on a `None` value', /Users/tkuehn/rust/src/libstd/option.rs:149
)
This is as minimal an example as I've been able to create that exhibits this ICE.