Created
April 24, 2014 17:01
-
-
Save SiegeLord/11261831 to your computer and use it in GitHub Desktop.
Closure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test.rs:5:2: 5:6 error: closure invocation in a `&` reference | |
test.rs:5 (*a)(); | |
^~~~ | |
error: aborting due to previous error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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