Guest User

Untitled

a guest
Jul 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. extern crate smallvec; ::std::mem::size_of::<smallvec::SmallVec<[u64; 10]>>>>()
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0369]: binary operation `>>` cannot be applied to type `fn() -> usize {std::mem::size_of::<main::smallvec::SmallVec<[u64; 10]>>}`
  11. --> src/main.rs:5:32
  12. |
  13. 5 | extern crate smallvec; ::std::mem::size_of::<smallvec::SmallVec<[u64; 10]>>>>()
  14. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. |
  16. = note: an implementation of `std::ops::Shr` might be missing for `fn() -> usize {std::mem::size_of::<main::smallvec::SmallVec<[u64; 10]>>}`
  17.  
  18. error: aborting due to previous error
  19.  
  20. For more information about this error, try `rustc --explain E0369`.
  21. error: Could not compile `playground`.
  22.  
  23. To learn more, run the command again with --verbose.
  24.  
  25. */
  26.  
  27. /* ~~~~=== stdout ===~~~~
  28.  
  29. */
Add Comment
Please, Sign In to add comment