]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch09-error-handling/listing-09-12/src/main.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch09-error-handling / listing-09-12 / src / main.rs
1 use std::error::Error;
2 use std::fs::File;
3
4 fn main() -> Result<(), Box<dyn Error>> {
5 let greeting_file = File::open("hello.txt")?;
6
7 Ok(())
8 }