Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
issues
/
issue-6117.rs
blob: 3ccf67b031991a99f2b62d411bcd7e86c234e4e0 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
enum
Either
<
T
,
U
>
{
Left
(
T
),
Right
(
U
)
}
pub
fn
main
()
{
match
Either
::
Left
(
Box
::
new
(
17
))
{
Either
::
Right
(())
=>
{}
_
=>
{}
}
}