Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
did_you_mean
/
issue-103909.rs
blob: 20b67cd102d7037c4a228d9dc613cbc2c8a6b7a2 [
file
] [
log
] [
blame
]
#![
allow
(
unused_variables
)]
use
std
::
fs
::
File
;
fn
main
()
{
if
Err
(
err
)
=
File
::
open
(
"hello.txt"
)
{
//~^ ERROR: cannot find value `err` in this scope
//~| ERROR: mismatched types
}
}