rust/src/test/compile-fail/fn-bare-bind.rs

9 lines
169 B
Rust
Raw Normal View History

// 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();
}