Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- std::mem::size_of_val<std::cell::RefCell<dyn std::fmt::Debug>>(std::cell::RefCell::new(10))
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error: chained comparison operators require parentheses
- --> src/main.rs:5:30
- |
- 5 | std::mem::size_of_val<std::cell::RefCell<dyn std::fmt::Debug>>(std::cell::RefCell::new(10))
- | ^^^^^^^^^^^^^^^^^^^^^^^
- |
- = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
- = help: or use `(...)` if you meant to specify fn arguments
- error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `std`
- --> src/main.rs:5:54
- |
- 5 | std::mem::size_of_val<std::cell::RefCell<dyn std::fmt::Debug>>(std::cell::RefCell::new(10))
- | ^^^ expected one of 8 possible tokens here
- error: aborting due to 2 previous errors
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment