blob: f8ff8b7d23d9bdb096c634f02a6c1157a4e3856f [file] [log] [blame] [edit]
//@ 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();
}