2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-06-14 15:58:10 -05:00
|
|
|
// error-pattern:explicit failure
|
2011-05-26 22:14:00 -05:00
|
|
|
use std;
|
|
|
|
import std::option::*;
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn foo(str s) { }
|
2011-05-26 22:14:00 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-06-15 13:19:50 -05:00
|
|
|
auto i =
|
|
|
|
alt (some[int](3)) {
|
|
|
|
case (none[int]) { fail }
|
|
|
|
case (some[int](_)) { fail }
|
|
|
|
};
|
|
|
|
foo(i);
|
|
|
|
}
|