rust/tests/run-pass/fn_item_as_closure_trait_object.rs
2017-02-07 11:04:46 +01:00

7 lines
61 B
Rust

fn foo() {}
fn main() {
let f: &Fn() = &foo;
f();
}