Skip to content

assertion failed: (left == right) && (right == left) (left: 1, right: 0) #8516

Closed
@carl-eastlund

Description

@carl-eastlund

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions