daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     println!("{:?}", {
  3.         struct Foo(impl Iterator<Item=Vec<u8>>);
  4.     });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9.    Compiling playground v0.0.1 (file:///playground)
  10. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  11.  --> src/main.rs:5:20
  12.   |
  13. 5 |         struct Foo(impl Iterator<Item=Vec<u8>>);
  14.   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15.  
  16. error: aborting due to previous error
  17.  
  18. For more information about this error, try `rustc --explain E0562`.
  19. error: Could not compile `playground`.
  20.  
  21. To learn more, run the command again with --verbose.
  22.  
  23. */
  24.  
  25. /* ~~~~=== stdout ===~~~~
  26.  
  27. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top