Advertisement
Guest User

Untitled

a guest
May 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. fn main() {
  2. let five_fives = std::iter::repeat(5).take(5);
  3. let t: (i32, i32, i32, i32, i32) = five_fives.collect();
  4. assert_eq!(t, (5, 5, 5, 5, 5));
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement