Guest User

Untitled

a guest
Oct 19th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. use std::io::Read;
  2.  
  3. fn reader<R>(source: R) -> ()
  4. where
  5. R: Read,
  6. {
  7. unimplemented!();
  8. }
  9.  
  10. fn main() {
  11. let bytes = vec![1u8, 2u8, 3u8];
  12.  
  13. reader(&*bytes);
  14. }
Add Comment
Please, Sign In to add comment