graydon/rust — Issue #1035: Comparison of by_ref single-variant nullary tag does not work
Author: brson
Created: 2011-10-12 22:23:17+00:00
State: open

```
tag chan {
chan_t;
}

fn wrapper3(i: chan) {
log_err i;
assert i == chan_t;
}

fn main() {
wrapper3(chan_t);
}
```

log displays a number that looks like garbage and the assert fails. Possibly the same issue as #1034