Guest User

Untitled

a guest
Dec 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #[allow(dead_code)]
  2. fn make_iter() -> impl Iterator<Item = u32> {
  3. //let array = &[1, 2, 3]; // <-- this works
  4. let array = [1, 2, 3];
  5.  
  6. array.into_iter()
  7. .cloned()
  8. }
  9.  
  10. fn main() {}
Add Comment
Please, Sign In to add comment