daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Oct 11th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![allow(unused)]
  2.  
  3. use std::{io};
  4.  
  5. fn foo() -> Result<Box<io::Read>, io::Error> {
  6.     return Ok(Box::new(io::Cursor::new("hi".to_string())));
  7. }
  8.  
  9. fn main() {
  10.     let x = foo().unwrap_err();
  11. }
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