blob: ba21c995adb25c929c326034fe7ea65d64b5a15f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// error-pattern: pattern variable conflicts
mod foo {
#[legacy_exports];
type t = u8;
const a : t = 0u8;
const b : t = 1u8;
fn bar(v: t) -> bool {
match v {
a => { return true; }
b => { return false; }
}
}
}
|