Guest User

Untitled

a guest
Jun 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. std::mem::size_of_val<std::cell::RefCell<dyn std::fmt::Debug>>(std::cell::RefCell::new(10))
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error: chained comparison operators require parentheses
  11. --> src/main.rs:5:30
  12. |
  13. 5 | std::mem::size_of_val<std::cell::RefCell<dyn std::fmt::Debug>>(std::cell::RefCell::new(10))
  14. | ^^^^^^^^^^^^^^^^^^^^^^^
  15. |
  16. = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
  17. = help: or use `(...)` if you meant to specify fn arguments
  18.  
  19. error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `std`
  20. --> src/main.rs:5:54
  21. |
  22. 5 | std::mem::size_of_val<std::cell::RefCell<dyn std::fmt::Debug>>(std::cell::RefCell::new(10))
  23. | ^^^ expected one of 8 possible tokens here
  24.  
  25. error: aborting due to 2 previous errors
  26.  
  27. error: Could not compile `playground`.
  28.  
  29. To learn more, run the command again with --verbose.
  30.  
  31. */
  32.  
  33. /* ~~~~=== stdout ===~~~~
  34.  
  35. */
Add Comment
Please, Sign In to add comment