Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- 0..=3.zip(0..=5).collect::<Vec<_>>()
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0689]: can't call method `zip` on ambiguous numeric type `{integer}`
- --> src/main.rs:5:15
- |
- 5 | 0..=3.zip(0..=5).collect::<Vec<_>>()
- | ^^^
- help: you must specify a concrete type for this numeric value, like `i32`
- |
- 5 | 0..=3_i32.zip(0..=5).collect::<Vec<_>>()
- | ^^^^^
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0689`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment