blob: 0ca67d9dc710e6c421ad4428f762c2b9341ad537 [file] [log] [blame]
// run-pass
// Test that overloaded calls work with zero arity closures
// pretty-expanded FIXME #23616
fn main() {
let functions: [Box<dyn Fn() -> Option<()>>; 1] = [Box::new(|| None)];
let _: Option<Vec<()>> = functions.iter().map(|f| (*f)()).collect();
}