1 2 3 4 5 6 7
use std::fs::File; use std::io::Error; fn main() -> Result<(), Error> { let _file = File::open("file.txt")?; Ok(()) }