rust/src/test/compile-fail/fn-bare-bind.rs
2011-10-20 20:34:04 -07:00

9 lines
167 B
Rust

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