yjh0502
Joined 15 years ago
Karma
129
Submissions
25
Member since
Jun 16
Joined 15 years ago
fn do_something() -> Box<Future<Item=(), Error=Error>> {
let val = match do_result() {
Ok(x) => x,
Err(e) => return Box::new(err(e.into())),
};
// do something with `val`
unimplemented!();
}