Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created February 11, 2013 02:55
Show Gist options
  • Save alexcrichton/4752141 to your computer and use it in GitHub Desktop.
Save alexcrichton/4752141 to your computer and use it in GitHub Desktop.
fn main() {
let a = ~[~1];
for a.each |&b| {
// b is a copy of the owned box
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment