Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
execute
/
torture
/
issue-1852-1.rs
blob: c858b4706ccd2efe5365f5a97804f60beee07392 [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
enum
Foo
{
A
,
B
(
i32
),
}
fn
main
()
->
i32
{
let
result
=
Foo
::
A
;
let
value
=
match
result
{
Foo
::
A
=>
15
,
Foo
::
B
(
x
)
=>
x
,
};
value
-
15
}