Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::io::Result;
- fn main() {
- let vec: Vec<Result<()>> = vec![];
- let val: Result<Vec<()>> = vec.into_iter().collect();
- println!("{:?}", val);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement