trpl-zh-cn/listings/ch09-error-handling/listing-09-12/src/main.rs
2022-02-06 16:43:51 +08:00

9 lines
137 B
Rust
Executable File

use std::error::Error;
use std::fs::File;
fn main() -> Result<(), Box<dyn Error>> {
let f = File::open("hello.txt")?;
Ok(())
}