Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created May 18, 2012 21:50
Show Gist options
  • Save nikomatsakis/2727784 to your computer and use it in GitHub Desktop.
Save nikomatsakis/2727784 to your computer and use it in GitHub Desktop.
fn ok(r: &r.uint, f: fn@(x: &uint))
{
let mut g = fn@(x: &r.uint) {
};
g = f;
}
fn not_ok(r: &r.uint, s: &s.uint)
{
let mut g: fn@(x: &uint) = fn@(x: &r.uint) {
};
g(s);
}
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment