Skip to content

Instantly share code, notes, and snippets.

@mheiber
Last active December 27, 2021 22:51
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 mheiber/6357e7e84da76486de3323d32908cb61 to your computer and use it in GitHub Desktop.
Save mheiber/6357e7e84da76486de3323d32908cb61 to your computer and use it in GitHub Desktop.
fn main() {
let make_a = |n| move || n;
let make_b = |n| move || n;
vec![make_a(1), make_a(2)];
vec![make_a(1), make_b(1)];
vec![|| 1, || 1];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment