2012-05-02 16:45:16 -05:00
|
|
|
// error-pattern: pattern variable conflicts
|
2012-04-19 18:19:53 -05:00
|
|
|
mod foo {
|
|
|
|
type t = u8;
|
|
|
|
|
|
|
|
const a : t = 0u8;
|
|
|
|
const b : t = 1u8;
|
|
|
|
|
|
|
|
fn bar(v: t) -> bool {
|
2012-08-06 14:34:08 -05:00
|
|
|
match v {
|
2012-08-03 21:59:04 -05:00
|
|
|
a => { return true; }
|
|
|
|
b => { return false; }
|
2012-04-19 18:19:53 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|