rust/src/test/compile-fail/bind-stack-closure.rs

11 lines
154 B
Rust
Raw Normal View History

fn foo(x: fn()) {
bind x(); //! ERROR cannot bind fn closures
}
fn bar(x: fn&()) {
bind x(); //! ERROR cannot bind fn& closures
}
fn main() {
}