Skip to content

Instantly share code, notes, and snippets.

@pnkfelix
Last active August 29, 2015 13:56
Show Gist options
  • Save pnkfelix/9136767 to your computer and use it in GitHub Desktop.
Save pnkfelix/9136767 to your computer and use it in GitHub Desktop.
trait Foo<T> { }
impl Foo<int> for () { }
fn bar<T:Send>(_t:T) { }
fn main() {
let x = ~() as ~Foo:<int>;
let y = ~() as ~Foo<int>;
println!("x: {:?} y: {:?}", x, y);
bar(y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment