Created
February 23, 2013 18:56
-
-
Save jld/5020875 to your computer and use it in GitHub Desktop.
In which rustc fails an LLVM assertion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(If the host (not the target!) is 32-bit, adjust the literals accordingly.)