Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustimpl TraitSingle-choice MCQ

A function is declared as `fn make() -> impl Fn() -> i32`. Which statement about its two callers below is correct?

fn make() -> impl Fn() -> i32 { let n = 42; move || n } let a = make(); let b = make(); let v = vec![a, b];