Last active
December 27, 2021 22:51
-
-
Save mheiber/6357e7e84da76486de3323d32908cb61 to your computer and use it in GitHub Desktop.
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 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