2012-01-12 18:23:24 -06:00
|
|
|
// error-pattern:squirrelcupcake
|
|
|
|
fn cmp() -> int {
|
2012-08-23 16:44:58 -05:00
|
|
|
match (option::some('a'), option::none::<char>) {
|
2012-08-03 21:59:04 -05:00
|
|
|
(option::some(_), _) => { fail ~"squirrelcupcake"; }
|
|
|
|
(_, option::some(_)) => { fail; }
|
2012-08-23 16:44:58 -05:00
|
|
|
_ => { fail ~"wat"; }
|
2012-01-12 18:23:24 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { log(error, cmp()); }
|