Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- std::mem::size_of::<Option<Bool>>()
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error[E0412]: cannot find type `Bool` in this scope
- --> src/main.rs:6:36
- |
- 6 | std::mem::size_of::<Option<Bool>>()
- | ^^^^
- help: there is an enum variant `serde::de::Unexpected::Bool` and 4 others; try using the variant's enum
- |
- 6 | std::mem::size_of::<Option<serde::de::Unexpected>>()
- | ^^^^^^^^^^^^^^^^^^^^^
- 6 | std::mem::size_of::<Option<serde::private::de::Content>>()
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 6 | std::mem::size_of::<Option<serde_json::Value>>()
- | ^^^^^^^^^^^^^^^^^
- 6 | std::mem::size_of::<Option<syn::Lit>>()
- | ^^^^^^^^
- help: a primitive type with a similar name exists
- |
- 6 | std::mem::size_of::<Option<bool>>()
- | ^^^^
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0412`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement