diff options
Diffstat (limited to 'src/doc/book/listings/ch09-error-handling/no-listing-04-unwrap/src/main.rs')
-rw-r--r-- | src/doc/book/listings/ch09-error-handling/no-listing-04-unwrap/src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/book/listings/ch09-error-handling/no-listing-04-unwrap/src/main.rs b/src/doc/book/listings/ch09-error-handling/no-listing-04-unwrap/src/main.rs new file mode 100644 index 000000000..92e9452f1 --- /dev/null +++ b/src/doc/book/listings/ch09-error-handling/no-listing-04-unwrap/src/main.rs @@ -0,0 +1,5 @@ +use std::fs::File; + +fn main() { + let greeting_file = File::open("hello.txt").unwrap(); +} |