graydon/rust — Issue #1193: const's don't work inside alt expressions
Author: boggle
Created: 2011-11-19 05:26:37+00:00
State: open

The following minimal example fails with "unreachable pattern"

```rust
mod foo {
type t = u8;

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

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