Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- std::mem::size_of::<&Clone>()
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0038]: the trait `std::clone::Clone` cannot be made into an object
- --> src/main.rs:5:29
- |
- 5 | std::mem::size_of::<&Clone>()
- | ^^^^^^ the trait `std::clone::Clone` cannot be made into an object
- |
- = note: the trait cannot require that `Self : Sized`
- error: aborting due to previous error
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment