summary refs log tree commit diff
path: root/src/test/compile-fail/issue-1193.rs
blob: b20d734ec592cbbe0930546df318ce1ebdaa4e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// error-pattern: pattern variable conflicts
mod foo {
    type t = u8;

    const a : t = 0u8;
    const b : t = 1u8;

    fn bar(v: t) -> bool {
        alt v {
            a { ret true; }
            b { ret false; }
        }
    }
}