rust/src/test/compile-fail/issue-2111.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

11 lines
232 B
Rust

fn foo(a: option<uint>, b: option<uint>) {
alt (a,b) { //~ ERROR: non-exhaustive patterns: none not covered
(some(a), some(b)) if a == b { }
(some(_), none) |
(none, some(_)) { }
}
}
fn main() {
foo(none, none);
}