mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
9 lines
154 B
Rust
9 lines
154 B
Rust
use std::io::Error;
|
|
|
|
fn main() {
|
|
let _read_num: fn() -> Result<(i32), Error> = || -> Result<(i32), Error> {
|
|
let a = 1;
|
|
Ok(a)
|
|
};
|
|
}
|