Created
February 13, 2013 21:20
-
-
Save bstrie/4948410 to your computer and use it in GitHub Desktop.
This file contains 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
const hellobytes: [u8 * 4] = [100, 101, 115, 117]; | |
fn main() { | |
let hellobuf: ~[u8] = ~[]; | |
log(error, hellobytes == hellobuf); // this is good | |
log(error, hellobuf == hellobytes); // this fails | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment