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

9 lines
183 B
Rust
Raw Normal View History

2011-10-20 22:34:04 -05:00
fn f() {
}
fn main() {
// Can't produce a bare function by binding
let g: native fn() = bind f();
//!^ ERROR mismatched types: expected `native fn()` but found `fn@()`
}