Skip to content

Instantly share code, notes, and snippets.

@MarkJr94
Last active December 23, 2015 05:39
Show Gist options
  • Save MarkJr94/6588904 to your computer and use it in GitHub Desktop.
Save MarkJr94/6588904 to your computer and use it in GitHub Desktop.
Static issue???
struct Test {
mem: int,
mem2: int,
}
pub static g_test: Test = Test {
mem: 0,
mem2: 0,
};
impl Drop for Test {
fn drop(&self) {
}
}
fn main() {
}
mark@seti-desktop:~/rust/src/clashrs$ RUST_LOG=rustc=1 rustc test.rs
task <unnamed> failed at 'assertion failed: `(left == right) && (right == left)` (left: `2u`, right: `3u`)', /build/buildd/rust-nightly-201309160805~3fbfab0~raring/src/librustc/middle/trans/adt.rs:545
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 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', /build/buildd/rust-nightly-201309160805~3fbfab0~raring/src/librustc/rustc.rs:377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment