daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let x = Some(Ok::<_, &'static str>(5));
  3.     if let Some(x) = x.and_then(Result::ok) {
  4.         println!("{}", x);
  5.     }
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top