about summary refs log tree commit diff
path: root/src/test/compile-fail/fn-bare-bind.rs
blob: 1635a91c14f7229d2dfe2ae4af5377a74cb80073 (plain)
1
2
3
4
5
6
7
8
9
// error-pattern:mismatched types: expected fn() but found fn@()

fn f() {
}

fn main() {
    // Can't produce a bare function by binding
    let g: fn() = bind f();
}