Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
issues
/
issue-27033.rs
blob: a23819a20f9aa0494177749319cc33af8b08e5ca [
file
] [
log
] [
blame
]
fn
main
()
{
match
Some
(
1
)
{
None
@
_
=>
{}
//~ ERROR match bindings cannot shadow unit variants
};
const
C
:
u8
=
1
;
match
1
{
C
@
2
=>
{
//~ ERROR match bindings cannot shadow constant
println
!(
"{}"
,
C
);
}
_
=>
{}
};
}