Sign in
fuchsia
/
third_party
/
rust
/
c38f75c21f016bffbf841ed5abce338f94201bde
/
.
/
tests
/
ui
/
lowering
/
expr-in-pat-issue-99380.rs
blob: 1d4a047f717f74df86419a2b8153dee64b38416f [
file
] [
log
] [
blame
]
macro_rules
!
foo
{
(
$p
:
expr
)
=>
{
if
let
$p
=
Some
(
42
)
{
return
;
}
};
}
fn
main
()
{
foo
!(
Some
(
3
));
//~ ERROR arbitrary expressions aren't allowed in patterns
}