// error-pattern:explicit failure fn foo(s: ~str) { } fn main() { let i = alt some::(3) { none:: => { fail } some::(_) => { fail } }; foo(i); }