2017-03-23 10:13:01 -05:00
|
|
|
// Test that overloaded calls work with zero arity closures
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-30 03:58:30 -05:00
|
|
|
let functions: [Box<dyn Fn() -> Option<()>>; 1] = [Box::new(|| None)];
|
2017-03-23 10:13:01 -05:00
|
|
|
|
2018-11-26 08:31:53 -06:00
|
|
|
let _val: Option<Vec<()>> = functions.iter().map(|f| (*f)()).collect();
|
2017-03-23 10:13:01 -05:00
|
|
|
}
|