SHARE
TWEET

Untitled

a guest Jul 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![allow(unreachable_code)]
  2.  
  3.  
  4. fn main() {
  5.     println!("{:?}", {
  6.         std::mem::size_of::<Option<Bool>>()
  7.     });
  8. }
  9.  
  10.  
  11. /* ~~~~=== stderr ===~~~~
  12.    Compiling playground v0.0.1 (/playground)
  13. error[E0412]: cannot find type `Bool` in this scope
  14.  --> src/main.rs:6:36
  15.   |
  16. 6 |         std::mem::size_of::<Option<Bool>>()
  17.   |                                    ^^^^
  18. help: there is an enum variant `serde::de::Unexpected::Bool` and 4 others; try using the variant's enum
  19.   |
  20. 6 |         std::mem::size_of::<Option<serde::de::Unexpected>>()
  21.   |                                    ^^^^^^^^^^^^^^^^^^^^^
  22. 6 |         std::mem::size_of::<Option<serde::private::de::Content>>()
  23.   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. 6 |         std::mem::size_of::<Option<serde_json::Value>>()
  25.   |                                    ^^^^^^^^^^^^^^^^^
  26. 6 |         std::mem::size_of::<Option<syn::Lit>>()
  27.   |                                    ^^^^^^^^
  28. help: a primitive type with a similar name exists
  29.   |
  30. 6 |         std::mem::size_of::<Option<bool>>()
  31.   |                                    ^^^^
  32.  
  33. error: aborting due to previous error
  34.  
  35. For more information about this error, try `rustc --explain E0412`.
  36. error: Could not compile `playground`.
  37.  
  38. To learn more, run the command again with --verbose.
  39.  
  40. */
  41.  
  42. /* ~~~~=== stdout ===~~~~
  43.  
  44. */
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