Skip to content

Instantly share code, notes, and snippets.

@erickt
Forked from dbp/copy_type.rs
Created October 7, 2012 22:11
Show Gist options
  • Save erickt/3849776 to your computer and use it in GitHub Desktop.
Save erickt/3849776 to your computer and use it in GitHub Desktop.
instantiating copy type warning
fn main() {
let x = (~"a",~"b");
match x {
(_, ref z) => io::println(z)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment