Skip to content

Instantly share code, notes, and snippets.

@jld
Created February 23, 2013 18:56
Show Gist options
  • Select an option

  • Save jld/5020875 to your computer and use it in GitHub Desktop.

Select an option

Save jld/5020875 to your computer and use it in GitHub Desktop.
In which rustc fails an LLVM assertion.
pub enum E {
H = 0x7FFF_FFFF_FFFF_FFFF,
L = 0x8000_0000_0000_0000
}
pub fn f(e: E) -> bool {
match e {
H => true,
L => false
}
}
@jld

jld commented Feb 23, 2013

Copy link
Copy Markdown
Author

(If the host (not the target!) is 32-bit, adjust the literals accordingly.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment