Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- struct Foo(impl Iterator<Item=Vec<u8>>);
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
- --> src/main.rs:5:20
- |
- 5 | struct Foo(impl Iterator<Item=Vec<u8>>);
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0562`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment