Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
patterns.rs
blob: 576e6c9ab92a97d287726b9e9ad80af794c68501 [
file
] [
log
] [
blame
]
#![
allow
(
unused
)]
#![
warn
(
clippy
::
all
)]
fn
main
()
{
let
v
=
Some
(
true
);
match
v
{
Some
(
x
)
=>
(),
y
@
_
=>
(),
}
match
v
{
Some
(
x
)
=>
(),
y
@
None
=>
(),
// no error
}
}