2011-12-28 15:41:31 -06:00
|
|
|
// error-pattern:mismatched types: expected `fn()` but found `fn@()`
|
2011-10-10 15:50:13 -05:00
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn f() {
|
2011-10-10 15:50:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// Can't produce a bare function by binding
|
2011-10-20 22:34:04 -05:00
|
|
|
let g: fn() = bind f();
|
2011-12-25 13:27:09 -06:00
|
|
|
}
|