fn foo () -> Result { let file = try!(File::open("foo.txt")); Ok(file) }