10 lines
240 B
Rust
10 lines
240 B
Rust
|
// error-pattern:squirrelcupcake
|
||
|
fn cmp() -> int {
|
||
|
alt(option::some('a'), option::none::<char>) {
|
||
|
(option::some(_), _) { fail "squirrelcupcake"; }
|
||
|
(_, option::some(_)) { fail; }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() { log(error, cmp()); }
|