Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created June 5, 2012 06:32
Show Gist options
  • Save killerswan/2873116 to your computer and use it in GitHub Desktop.
Save killerswan/2873116 to your computer and use it in GitHub Desktop.
type demo<G: copy> = G;
iface demo_iface<U: copy> {
fn show(U);
fn run(fn(U), U);
}
mod demo {
export demo_impl;
impl demo_impl<K: copy> of demo_iface<K> for demo<K> {
fn show(_a: K) { () }
fn run(_f: fn(K), _b: K) { () }
}
}
fn main() {
io::println("meh");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment