Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created February 13, 2013 21:20
Show Gist options
  • Save bstrie/4948410 to your computer and use it in GitHub Desktop.
Save bstrie/4948410 to your computer and use it in GitHub Desktop.
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