2011-06-14 15:58:10 -05:00
|
|
|
// error-pattern:explicit failure
|
2011-05-26 22:14:00 -05:00
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
fn foo(s: ~str) { }
|
2011-05-26 22:14:00 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-08-19 17:16:48 -05:00
|
|
|
let i =
|
2012-08-03 21:59:04 -05:00
|
|
|
alt some::<int>(3) { none::<int> => { fail } some::<int>(_) => { fail } };
|
2011-06-15 13:19:50 -05:00
|
|
|
foo(i);
|
2011-08-13 02:10:18 -05:00
|
|
|
}
|