Closed
Description
$ rustc --version
rustc 0.11.0-pre-nightly (6291955 2014-05-19 23:41:20 -0700)
host: x86_64-apple-darwin
Input
struct A(int);
pub fn main() {
match A(0) {
A(..) => 0,
};
}
Output
Basic Block in function '_ZN4main20h2e73f07be5542c69jaa4v0.0E' does not have terminator!
label %entry-block
LLVM ERROR: Broken function found, compilation aborted!
Input
struct A(int);
pub fn main() {
match A(0) {
A(0) => 1,
A(..) => 0,
};
}
Output
llvm_err.rs:6:9: 6:14 error: internal compiler error: expected an identifier pattern but found p: pat(21: A(..))
llvm_err.rs:6 A(..) => 0,
^~~~~