2011-09-20 10:28:16 -07:00
|
|
|
// Issue #945
|
|
|
|
// error-pattern:non-exhaustive match failure
|
|
|
|
fn test_box() {
|
|
|
|
@0;
|
|
|
|
}
|
|
|
|
fn test_str() {
|
2012-08-06 12:34:08 -07:00
|
|
|
let res = match check false { true => { ~"happy" } };
|
2012-07-13 22:57:48 -07:00
|
|
|
assert res == ~"happy";
|
2011-09-20 10:28:16 -07:00
|
|
|
}
|
|
|
|
fn main() {
|
|
|
|
test_box();
|
|
|
|
test_str();
|
|
|
|
}
|