Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
structs-enums
/
simple-match-generic-tag.rs
blob: 762fd49ad247548e9f424c8437f2dddbaae24225 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
#![
allow
(
non_camel_case_types
)]
enum
opt
<
T
>
{
none
,
some
(
T
)
}
pub
fn
main
()
{
let
x
=
opt
::
none
::<
isize
>;
match
x
{
opt
::
none
::<
isize
>
=>
{
println
!(
"hello world"
);
}
opt
::
some
(
_
)
=>
{
}
}
}