Closed
Description
Here's the program:
enum Either {One(()), Other{left:~str,right:~str}}
static one : Either = One(());
fn main () {}
Here's the error message:
task <unnamed> failed at 'assertion failed: `(left == right) && (right == left)` (left: `1`, right: `0`)', /Users/cce/git/rust/src/librustc/middle/trans/adt.rs:521
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', /Users/cce/git/rust/src/librustc/rustc.rs:371