blob: 19049b9add5c1c399a13c599c9b2a9a079679bb6 [file] [log] [blame]
// Test that overloaded calls work with zero arity closures
fn main() {
let functions: [Box<dyn Fn() -> Option<()>>; 1] = [Box::new(|| None)];
let _val: Option<Vec<()>> = functions.iter().map(|f| (*f)()).collect();
}