summary refs log tree commit diff
path: root/src/test/compile-fail/bind-stack-closure.rs
blob: 6a08b9b56c0b8d506a0957160e75e25e05df8eb9 (plain)
1
2
3
4
5
6
7
8
9
10
fn foo(x: fn()) {
    bind x(); //! ERROR cannot bind fn closures
}

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

fn main() {
}