Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created July 19, 2019 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/0c215199ef4d5e8562108212c60b8b7a to your computer and use it in GitHub Desktop.
Save rust-play/0c215199ef4d5e8562108212c60b8b7a to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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