Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- fn foo() -> impl Iterator { vec![].into_iterator() }
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0599]: no method named `into_iterator` found for type `std::vec::Vec<_>` in the current scope
- --> src/main.rs:5:44
- |
- 5 | fn foo() -> impl Iterator { vec![].into_iterator() }
- | ^^^^^^^^^^^^^
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0599`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment