Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created May 25, 2012 18:27
Show Gist options
  • Save nikomatsakis/2789686 to your computer and use it in GitHub Desktop.
Save nikomatsakis/2789686 to your computer and use it in GitHub Desktop.
import comm::{port, chan, methods};
use std;
import std::arc;
enum e<T: send> { e(arc::arc<T>) }
resource r(x : e<arc::arc<int>>) {
}
fn foo() -> r {fail;}
fn main() {
let x = foo();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment