Last active
December 20, 2015 13:39
-
-
Save olsonjeffery/6140063 to your computer and use it in GitHub Desktop.
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
/// The Promise type. Can provide the value of a Future | |
pub struct Promise<A> (ChanOne<A>); | |
impl<A:Send> Promise<A> { | |
pub fn fulfill(&mut self, v: A) { | |
(*self).send(v); | |
} | |
} |
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
/home/jeff/src/rust/src/libstd/unstable/future.rs:63:8: 63:16 error: cannot move out of dereference of & pointer | |
/home/jeff/src/rust/src/libstd/unstable/future.rs:63 (*self).send(v); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment