Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. use std::{
  2. convert::TryFrom,
  3. iter::Iterator
  4. };
  5.  
  6. struct Coord(i32, i32);
  7.  
  8. impl<T> TryFrom<T> for Coord
  9. where
  10. T: Iterator<Item=u8>
  11. {
  12. type Error = ();
  13. fn try_from(bts: T) -> Result<Self, Self::Error> {
  14. Err(())
  15. }
  16. }
  17.  
  18. fn main() {
  19. let mut it = [0, 0, 0, 0].iter();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement