blob: 1a4155574f89456d56d83de1b236ec896ddaa152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// error-pattern:explicit failure
use std;
import option::*;
fn foo(s: str) { }
fn main() {
let i =
alt some::<int>(3) { none::<int>. { fail } some::<int>(_) { fail } };
foo(i);
}
|