Guest User

Untitled

a guest
Oct 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. use std::io::Read;
  2.  
  3. fn reader<R>(source: &mut 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.as_mut_slice());
  14. }
Add Comment
Please, Sign In to add comment