SHARE
TWEET

Untitled

a guest Sep 18th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pub fn main() {
  2.     struct I {}
  3.     impl std::iter::Iterator for I {
  4.         type Item = u8;
  5.         fn next(&mut self) -> Option<Self::Item> {
  6.             Some(0)
  7.         }
  8.     }
  9.     struct S {}
  10.     impl std::iter::IntoIterator for S {
  11.         type Item = u8;
  12.         type IntoIter = I;
  13.         fn into_iter(self) -> Self::IntoIter {
  14.             unimplemented!()
  15.         }
  16.     }
  17.     for _ in (S {}) {
  18.        
  19.     }
  20. }
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