aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/type-namespace.rs
blob: 5038ae13894f6d2010ac14880ff2d8c44ff93656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// xfail-boot
// xfail-stage0

type a = rec(int a);

fn a(a a) -> int {
    ret a.a;
}

fn main() {
    let a x = rec(a=1);
    assert(a(x) == 1);
}