Created
July 19, 2019 09:53
-
-
Save rust-play/0c215199ef4d5e8562108212c60b8b7a to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let closure = |a: u32| -> u32 { | |
a | |
}; | |
println!("{}", std::mem::size_of_val(&closure)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment