Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch09-error-handling
/
no-listing-07-main-returning-result
/
src
/
main.rs
blob: 7f16b8e995dafcbec4e65b53e95c8a9e0d9da0b7 [
file
] [
log
] [
blame
]
use
std
::
error
::
Error
;
use
std
::
fs
::
File
;
fn
main
()
->
Result
<(),
Box
<
dyn
Error
>>
{
let
f
=
File
::
open
(
"hello.txt"
)?;
Ok
(())
}