about summary refs log tree commit diff
path: root/src/test/run-pass/check-pattern-bound.rs
blob: ad820c3c683b68d072844774d9c982f09f5f4fab (plain)
1
2
3
4
5
6
7
8
9
10
use std;
import option::*;

pure fn p(x: int) -> bool { true }

fn f(x: int) : p(x) { }

fn main() {
    alt some(5) { some(y) { check (p(y)); f(y); } _ { fail "yuck"; } }
}