Sign in
fuchsia
/
third_party
/
rust
/
1e3b57ee7754702ce9fcef73686b5bcee405dd4a
/
.
/
src
/
test
/
ui
/
error-codes
/
E0001.rs
blob: 2c95f02bf3417ab5650627b0ed34eb7411563636 [
file
] [
log
] [
blame
]
#![
deny
(
unreachable_patterns
)]
fn
main
()
{
let
foo
=
Some
(
1
);
match
foo
{
Some
(
_
)
=>
{
/* ... */
}
None
=>
{
/* ... */
}
_
=>
{
/* ... */
}
//~ ERROR unreachable pattern
}
}