6 lines
95 B
Rust
6 lines
95 B
Rust
|
pub fn main() {
|
||
|
let bar = ~3;
|
||
|
let h: @fn() -> int = || *bar;
|
||
|
assert_eq!(h(), 3);
|
||
|
}
|