Skip to content

Instantly share code, notes, and snippets.

@SiegeLord
Created April 24, 2014 17:01
Show Gist options
  • Save SiegeLord/11261831 to your computer and use it in GitHub Desktop.
Save SiegeLord/11261831 to your computer and use it in GitHub Desktop.
Closure
test.rs:5:2: 5:6 error: closure invocation in a `&` reference
test.rs:5 (*a)();
^~~~
error: aborting due to previous error
fn main()
{
let a = &|| -> uint { 0 };
(*a)();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment