1f04c3dcef
It mysteriously works now.
14 lines
165 B
Rust
14 lines
165 B
Rust
// xfail-boot
|
|
|
|
fn test_fn() {
|
|
type t = fn() -> int;
|
|
fn ten() -> int {
|
|
ret 10;
|
|
}
|
|
let t res = { ten };
|
|
check (res() == 10);
|
|
}
|
|
|
|
fn main() {
|
|
test_fn();
|
|
} |