2011-10-18 17:07:40 -05: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-10-10 15:50:13 -05:00
|
|
|
}
|