Guest User

Untitled

a guest
Jun 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. 0..=3.zip(0..=5).collect::<Vec<_>>()
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0689]: can't call method `zip` on ambiguous numeric type `{integer}`
  11. --> src/main.rs:5:15
  12. |
  13. 5 | 0..=3.zip(0..=5).collect::<Vec<_>>()
  14. | ^^^
  15. help: you must specify a concrete type for this numeric value, like `i32`
  16. |
  17. 5 | 0..=3_i32.zip(0..=5).collect::<Vec<_>>()
  18. | ^^^^^
  19.  
  20. error: aborting due to previous error
  21.  
  22. For more information about this error, try `rustc --explain E0689`.
  23. error: Could not compile `playground`.
  24.  
  25. To learn more, run the command again with --verbose.
  26.  
  27. */
  28.  
  29. /* ~~~~=== stdout ===~~~~
  30.  
  31. */
Add Comment
Please, Sign In to add comment