Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
while_let_expr.rs
blob: 113ad743cc2beff654e90469005216fc0c373589 [
file
] [
log
] [
blame
]
// { dg-options "-fsyntax-only" }
pub
enum
Option
<
T
>
{
None
,
Some
(
T
),
}
fn
main
()
{
let
mut
x
=
Option
::
Some
(
3
);
let
a
=
while
let
Option
::
Some
(
1
)
=
x
{
x
=
Option
::
None
;
};
}